3 tangible walls + Moving by Arrow keys by Brandon Goss17th Feb 2009 5:26
|
---|
Summary This is how you make your three walls and make them tangible as well. These walls are also painted by your own pictures. Description Code ` This code was downloaded from The Game Creators ` It is reproduced here with full permission ` http://www.thegamecreators.com Rem Project: Maze Rem Created: 2/17/2009 2:52:14 AM Rem ***** Main Source File ***** REM This program in Darkbasic Pro will set up 3 pictured walls that are tangible REM You will also be able to navigate with the arrow keys. REM The walls consist of your own pictures. REM Initialize the program hide mouse color backdrop RGB(255,255,255) set ambient light 80 REM Make first wall Make object box 1,300,300,10 load image "C:\Documents and Settings\Owner\My Documents\My Pictures\Wall 1.bmp",1 Texture object 1,1 position object 1,0,100,-150 set object collision to polygons 1 REM Make second wall Make object box 2,300,300,10 load image "C:\Documents and Settings\Owner\My Documents\My Pictures\Wall 2.bmp",2 Texture object 2,2 position object 2,0,100,-450 yrotate object 2,180 Set object collision to polygons 2 REM MAKE third ROUTE CAVE DOOR make object box 3,300,300,10 load image "C:\Documents and Settings\Owner\My Documents\My Pictures\Cave Door 1.bmp",3 Texture object 3,3 position object 3,150,100,-300 yrotate object 3,270 Position camera 0,-25,125,-325 Repeat Automatic camera collision 0,25,1 Control camera using arrowkeys 0,1,1 REM Finishing up Until Escapekey()=1 show mouse END |