home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming for Teens (2nd Edition) / 3DGPFT2E.iso / Source / Chapter10 / demo10-01.bb next >
Encoding:
Text File  |  2009-01-21  |  507 b   |  27 lines

  1. ;demo09-01.bb - Beginning a terrain
  2. ; ------------------
  3. Graphics3D 640,480 
  4. SetBuffer BackBuffer()
  5.  
  6. Const ESC_KEY = 1
  7.  
  8. ; Create camera
  9. camera=CreateCamera()
  10.  
  11. ; Create a light
  12. light=CreateLight()
  13.  
  14. ;load missile
  15. missile=LoadMesh ("missile.3ds") 
  16. tex=LoadTexture ("missile.jpg") 
  17. EntityTexture missile,tex 
  18. PositionEntity missile, 1,0,5 
  19. ScaleEntity missile, .07,.07,.07 
  20.  
  21.  
  22. ; This following code deals with cameras and terrain 
  23. While Not KeyDown(ESC_KEY)
  24.     RenderWorld 
  25.     Flip
  26. Wend
  27. End