Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [LOCKED] The Amazing Spinning Cube - For Newbies

Author
Message
Daniel TGC
Retired Moderator
17
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 12th Apr 2007 10:30
Set Display Mode 1024, 768, 32
Autocam Off
Sync On
Sync Rate 60

Make Object Cube 1, 25
Color Object 1, RGB(128, 64, 78)

Position Camera 30, 30, 30
Point Camera 0, 0, 0

Make Light 1
Position Light 1, 0, 30, 0

Do

If Downkey()=1 then Pitch Object Down 1,1
If Upkey() = 1 then Pitch Object Up 1,1
If Leftkey() = 1 then Turn Object Left 1,1
If Rightkey() = 1 then Turn Object Right 1,1

Sync
Loop
Alquerian
18
Years of Service
User Offline
Joined: 29th Mar 2006
Location: Reno Nevada
Posted: 12th Apr 2007 21:26


Terrain Generation has a whole new face.
Milkman
18
Years of Service
User Offline
Joined: 30th Nov 2005
Location: United States
Posted: 13th Apr 2007 00:35
Yes, please use [ code ] and [ /code ] to enclose your code snippets (without the spaces of course).

Who needs a signature?
david w
18
Years of Service
User Offline
Joined: 18th Dec 2005
Location: U.S.A. Michigan
Posted: 13th Apr 2007 01:48
why are people posting useless stuff now

This is almost as bad as the "graphics card guy". I could have found that in the help file.
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 13th Apr 2007 06:45
closed

Login to post a reply

Server time is: 2024-11-22 18:41:22
Your offset time is: 2024-11-22 18:41:22