I am a beginning game developer, using Linux and C/C++. I am interested in organizing my game engine around a state machine, that let's me jump from a start screen, into the game and then back out during gameplay. Where the player would be able to set options such as sound or video settings.
I have never created a state machine, but found out that it is what I should be looking for. Does anyone have any suggestions on how to develop an SFML or SDL2 project around that concept. Some basic example code would help. Or some project where the source code is available and it's not too difficult to go through.