basic movement by James31st Mar 2004 17:08
|
---|
Summary basic control over a cube Description in this progam you can move a cube up dovn left right forwards back Code ` This code was downloaded from The Game Creators ` It is reproduced here with full permission ` http://www.thegamecreators.com rem ************************************************************************************* rem ************************************************************************************* rem *************** press up will move box away and down closer *************** rem *************** press left to move box left right to move right *************** rem *************** press shift to move box up and ctrl to move down *************** rem *************** press space to rotate the box *************** rem ************************************************************************************* rem ************************************************************************************* make object box 1,2,2,2 position object 1,0,0,0 do if upkey()=1 then move object 1,1 if downkey()=1 then move object 1,-1 if leftkey()=1 then move object left 1,1 if rightkey()=1 then move object right 1,1 if shiftkey()=1 then move object up 1,1 if controlkey()=1 then move object down 1,1 if spacekey()=1 then pitch object up 1,.3 if spacekey()=1 then roll object left 1,.3 loop |