Chapter 2. Cube Chaser – A Flat 3D World
Our first 3D game will feature a very straight forward design: the player is trapped in a randomly generated maze, and must seek out the great green cube! Every time the player reaches this goal, they are awarded points for how quickly they found the cube and it is relocated to a different portion of the maze.
While simple in design, building Cube Chaser will cover a number of important topics related to 3D game development. In this chapter, we will look at:
Building an FPS (First Person Shooter) style camera
Drawing surfaces using triangles in the 3D world
Generating a floor as a base for our maze
Detecting input and allowing first-person movement through the maze