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

Creating a Plane

One of the easiest ways to make a “playing field” for your game is to create a plane. A plane is an endless surface that continues on and on into infinity. The biggest advantage of a plane is that it goes on forever, so there is no chance that your players will fall off the edge of the playing surface. This is a great alternative to creating a terrain.

Creating a plane is quite simple; it can be made as easily as any shape. Planes act much like shapes in that they can be colored or textured. In the following example, we’ll add a plane to an empty program.

Start by entering the following code into Blitz3D. Once you have entered the code, save it with a new name.

Graphics3D 640,480 SetBuffer BackBuffer() ; Create camera camera=CreateCamera() ...

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