Programming Project, day 12

I’ve created states within the gamestate, two so far. They called “GamePlayState” and “GameEndState”.

I made a ScoreManager because that is the next step to expanding the game. It uses to save and load the current highscore.  It works and tracks the following things: current score, high score and player wins (support for 4 players, even though the rest of the game is hard coded to two at the moment).

To get all these things to work the way I want I need SDL_TTF. And I’ve worked with that before so it’ll be no problem I think.

Also, I have tried to make the game more dynamic when it comes to width and height. Both window width/height and tile width/height. There are many things to take heed of when I’m doing this in the current code, the collisions and places where objects are created needs to be changed. I’ve made some changes and the game doesn’t really work right now, but it’s a work in progress.

Some family is visiting tomorrow so I wont get much done then I think.

Here is some programming art. This is how I’m thinking that it’ll work when this part of the game is done. Perhaps I’ll skip adding an options state within the game state right now. There are more important parts to implement.

Image