TGC Codebase Backup



Make a mATRIX by Anonymous Coder

7th Jul 2007 13:15
Summary

THIS CODE MAKES A SIMPLE MATRIX YOU CAN WALK ON. NO MEDIA NECESARY!



Description

THIS CODE MAKES A MATRIX YOU CAN WALK ON AND YOU DON'T NEED MEDIA!
If you don't use any media then just run the code.
If you do use media then you have to download the media and copy the code into DB.
Then you need to SAVE the code to the same folder as the media.
Then ERASE REM from the these lines in the code: REM load image "dark01.bmp",1
REM prepare matrix texture 1,1,2,1
AND copy the lines.
Next paste them between: REM \|/ PLACE IMAGE CODE HERE\|/


REM /|\ PLACE IMAGE CODE HERE/|\
and your ready to run the program.



Code
                                    ` This code was downloaded from The Game Creators
                                    ` It is reproduced here with full permission
                                    ` http://www.thegamecreators.com
                                    
                                    rem made by mike
`7/7/07

REM COPY FOLLOWING CODE IN ARROWS !IF YOU DOWNLOADED THE MEDIA BUT ERASE REM
REM   load image "dark01.bmp",1
REM   prepare matrix texture 1,1,2,1


sync on 
sync rate 30
print "this makes a simple matrix"
print "use left/right arrow keys to look aronnd"
print "use up/down key to move"
print "press space to start and mouseclick to leave"
make matrix 1,4000,4000,30,30
randomize matrix 1,2
REM \|/ PLACE IMAGE CODE HERE\|/


REM /|\ PLACE IMAGE CODE HERE/|\
fog on
fog distance 2000
fog color rgb(104,129,155)
REM MAIN LOOP
DO
REM MAIN LOOP
caY# = camera angle Y()
if leftkey()=1 then Yrotate camera wrapvalue(caY#-5)
if rightkey()=1 then Yrotate camera wrapvalue(caY#+5)
if upkey()=1 then move camera 10
if downkey()=1 then move camera -10
sync
loop