Frogger Dev. Post 19

I haven’t actually posted anything in quite a while so I better get back in business before I make a habit out of forgetting to post. Truth is that I haven’t done that much work these last three days, so instead of posting three small posts I decided to combine them into one big post.

Overall, what I’ve done is that I’ve made is that I’ve made a more flexible menu system. Basically I have a state which has several “substates” that it can switch between. The menu choices are divided into these states and can either take the person using it to another substate or another State entierly. I might show some code of this in the next post but for now I’ll just explain the overall idea (because I’m writing this at 3:26 in the middle of the night and I’d like to go to sleep and restore my internal rythm somehow).

To make it so that you can enter the Gamestate wihtout resetting all of the data (whenever you enter the gamestate all of the cars, logs and the player are put back in their starting position, the life and home counter are also reset), there is a boolean variable that keeps track of wether or not you are in the pause menu or not. The downside of this is that if you exit from the pause menu the game wont reset and you’ll just continue from where you left off. This is good when pausing but not if you’d like to quit the game.