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 Arena game
- OOP and the Zombie Arena project
- Building the player – the first class
- Controlling the game camera with SFML View
- Starting the Zombie Arena game engine
- Managing the code files ...