TGC Codebase Backup



Another beginners code by Charlie

3rd Jan 2006 10:18
Summary

3D rotating cube with color for beginners



Description

A 3D cube that rotates on it x and y axis at different speeds. Has color. For no known reason this code was erased so I uploaded it again.



Code
                                    ` This code was downloaded from The Game Creators
                                    ` It is reproduced here with full permission
                                    ` http://www.thegamecreators.com
                                    
                                    REM 3D ROTATING CUBE

MAKE OBJECT CUBE 1,1
COLOR OBJECT 1,RGB(255,00,100)
DO
XROTATE OBJECT 1,OBJECT ANGLE X(1)+0.3
YROTATE OBJECT 1,OBJECT ANGLE Y(1)+0.5
LOOP

SYNC ON