Chapter 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 up into layers for different aspects of the game. In the Zombie Shooter project, we will have a layer for the HUD and a layer for the main game. This is necessary because as the game world expands each time the player clears a wave of zombies and, 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. In the next project, we will take things even further and create a co-op split screen game with the SFML View
class doing most of the hard work.
This is what we will do in this chapter:
- Planning and starting the Zombie Arena game
- Coding the
Player
class - Learning about the SFML
View
class - Building...