Day 12, Some progress
|
I have left yesterdays mess behind me and today it went very well. So I worked on the StartState and added the buttons and functionallity. I also added some functionallity in game. You now lose a life when the ball goes outside the screen past the player. When all lives are lost, (Start + 3 lives) the GameState is stopped and you are sent to a black screen for 3 seconds(Game Over screen…work in progress).
Same goes when you destroy all bricks and win. Then you’re also sent to the black screen.
I want a text on the win and game over screen and a score and some other text so I started working on how to solve that. I read up some on TTF and SDL and decided to download that.
I made a Textobject class and a TextManager that works basiclly as the Sprite class and SpriteManager class from the school workshop with Tommi.
I also drew some new sprites that i will use for animation and also an instruction sprite.
Tomorrow I will probably keep working on getting text into the game.
|

