TGC Codebase Backup



spinning cube game by Quent

17th Jan 2010 2:33
Summary

a spinning cube which you use the arrow keys to control



Description



Code
                                    ` This code was downloaded from The Game Creators
                                    ` It is reproduced here with full permission
                                    ` http://www.thegamecreators.com
                                    
                                    print "use the arrow keys to move the cube, press any key to continue"
wait key
print "loading.... 15 sec wait"
wait  17000

hide mouse
sync on
sync rate 100
backdrop on

make object cube 1, 50
color object 1, rgb(0,0,255)

do

if upkey() = 1 then dec x
if downkey() = 1 then inc x
if rightkey() = 1 then dec y
if leftkey() = 1 then inc y
rotate object 1, x, y, 0

sync
loop