TGC Codebase Backup



Making a simple cube by Anonymous Coder

7th Mar 2006 23:08
Summary

makes a 3d cube and spins it.



Description

left click mouse to move the object up.
right click mouse to move the object down.



Code
                                    ` This code was downloaded from The Game Creators
                                    ` It is reproduced here with full permission
                                    ` http://www.thegamecreators.com
                                    
                                     mouseclick() = 0
 mouseclick() = 1
 mouseclick() = 2

 make object plain 2, 100, 100
 make object cube 1, 100
rotate object  2, 93, 0, 0

 do
 if mouseclick() = 1
 move object up 1, 12
 endif

 if mouseclick()= 2
 move object down 1, 12
 endif

 loop