Summary
This was a quick and simple chapter. We looked at how to display the values that are held by variables of different types using sstream
and then learned how to draw them over the top of the main game action using a second SFML View
object.
We are nearly done with Zombie Arena now. We have added and seen how to update the HUD including a level-up and a home screen. All the screenshots in this chapter show a small arena that doesn’t take advantage of the full monitor.
In the next chapter, the final one for this project, we will put in some finishing touches, such as leveling up, sound effects, and saving the high score. The arena can then grow to the same size as the monitor and far beyond.