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

  1. ; demo05-01.bb - Creating a Basic Cone 
  2. ; ------------------
  3.  
  4. Graphics3D 640,480 
  5. SetBuffer BackBuffer()
  6.  
  7. Const ESC_KEY = 1
  8. ; Create camera 
  9. camera = CreateCamera()
  10. ; Create a light 
  11. light = CreateLight()
  12.  
  13. ; This is the code for creating the cone 
  14. cone = CreateCone() 
  15. PositionEntity cone,0,0,5
  16.  
  17. ; This following code makes our program run 
  18. While Not KeyDown(ESC_KEY)
  19.     RenderWorld 
  20.     Flip
  21. Wend
  22. End