O'Reilly logo

3D Game Programming for Teens, Second Edition by Eric Grebler, Maneesh Sethi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The First Program: Jumping Cone!

All right, now you will be able to see what a simple 3D program can do! Basically, this program is just a simple cone that jumps up and down. To play, either run demo01-01.exe from the CD or compile the code.

To compile the code yourself, you need to find demo01-01.bb on the CD. After finding it, copy it to your computer and open it through the Blitz3D compiler. To open it, find the File menu on the top of the compiler and choose Open. Navigate to demo01-01.bb and press Enter. The code should now appear inside your compiler.

To actually compile, find the Program menu in Blitz3D. Select Program > Run Program, and the game will compile and run! If you get a window asking you to save the file, choose a directory ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required