Chapter 8. Implementing the Level Object

The last thing you need to implement before you can update the main game engine to actually play the game is the level object. The level object is probably the most important object in the game because you use it to control virtually everything in the game. The player can't do much without the level, the blocks are all but useless without the level, and there's no way to win (or lose) before the level is there.

You need an object that will hold the implementation for the level. During this chapter, you will design and implement this feature.

In this chapter, you'll learn

  • How to design and implement the level class

  • How to control player movement

  • How to update the level

Get Beginning 3D Game Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.