Game from scratch with C++ and SFML (3)
The state manager
This article is part of the series “Game from scratch with C++ and SFML”.
2) Our first window & game loop
3) The state manager
4) Adding our player
5) Cleaning up with an object manager
6) Add the ball
7) The AI !
8) Finishing up the game
In this chapter, we are going to add a state manager. I promise this is the last “boring” step before actually writing game code 😅. But I feel like this is an important step of how to structure your game as there are tons of…