8

SFML Views – Starting the Zombie Shooter Game

In this project, we will be making even more use of OOP and to a powerful effect. We will also be exploring the SFML View class. This versatile class will allow us to easily divide our game into layers for different aspects of the game. In the Zombie Shooter project, we will have a layer for the heads-up display (HUD) and a layer for the main game. This is necessary because the game world expands each time the player clears a wave of zombies. Eventually, the game world will be bigger than the screen and will need to scroll. The use of the View class will prevent the text of the HUD from scrolling with the background.

This is what we will cover in this chapter:

  • Planning and starting the Zombie ...

Get Beginning C++ Game Programming - Third Edition 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.