Joystick control by Slayer9331st Jul 2004 7:49
|
---|
Summary If you have a joystick then you can use this program Description Move a circle around the screen with a joystick.My first program I just forgot to put it in till now. Code ` This code was downloaded from The Game Creators ` It is reproduced here with full permission ` http://www.thegamecreators.com ```````````````````````` ````first program```` ```````````````````````` `varibles x=320 y=240 `sync and mouse sync on sync rate 30 hide mouse `loop DO cls (120) `joystick controls a=joystick up() b=joystick down() c=joystick left() d=joystick right() ab=joystick slider a() bb=joystick slider b() x=x+(joystick x()/100) y=y+(joystick y()/100) `circle circle x,y,12:circle x,y,4 `sync sync `loop loop |