home *** CD-ROM | disk | FTP | other *** search
- ;demo09-01.bb - Beginning a terrain
- ; ------------------
- Graphics3D 640,480
- SetBuffer BackBuffer()
-
- Const ESC_KEY = 1
-
- ; Create camera
- camera=CreateCamera()
-
- ; Create a light
- light=CreateLight()
-
- ;load missile
- missile=LoadMesh ("missile.3ds")
- tex=LoadTexture ("missile.jpg")
- EntityTexture missile,tex
- PositionEntity missile, 1,0,5
- ScaleEntity missile, .07,.07,.07
-
-
- ; This following code deals with cameras and terrain
- While Not KeyDown(ESC_KEY)
- RenderWorld
- Flip
- Wend
- End