TGC Codebase Backup



input the cube spinning by Anonymous Coder

25th Jan 2007 6:53
Summary

i was bored... but no media!!!!something i did with a cube



Description

first set the the y,z and x speed(i used the *0.1 command)
then typ yes when sure? enters the screen(otherwises you can reënter the x,y and z)
and yougot the cube its fun!!!(well... its is suposed to be...)



Code
                                    ` This code was downloaded from The Game Creators
                                    ` It is reproduced here with full permission
                                    ` http://www.thegamecreators.com
                                    
                                    1: cls
print "yrotate>";
input y
print "xrotate>";
input x
print "zrotate>";
input z
print "sure?"
input a$
if a$ <> "yes" then goto 1

make object cube 1,100
do
  yrotate object 1,object angle y(1)+ y *0.1
  xrotate object 1,object angle x(1)+ x *0.1
  zrotate object 1,object angle z(1)+ z *0.1
loop