Chapter 7. Implementing the Player and Blocks

With the user interface screens implemented, you now have a way to get an actual game started from within your game. As you are probably aware, you currently have nothing to play. The implementation of the game logic hasn't happened yet, and you have no code written to maintain any of the game state, outside of the user interface screens.

You need an object that will hold the implementation for both your player and the blocks that compose the level. Obviously, the player class is pretty important because you need something to control to play the game. The blocks are equally important because they are what you use to render the actual level. During this chapter, you will design and implement these ...

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.