I'm working on my first game, a Breakout clone (gotta start somewhere, right?). The twist is that the goal is not to destroy all the blocks on the screen, but to destroy certain targets. The blocks are just obstacles for the ball. But I figure I should reward the player for destroying all the blocks. But I cant quite figure it out.
I currently have it set like this:
<img src="http://farm9.staticflickr.com/8385/8634569429_e495b31acf.jpg" border="0" />
When the block count is less than or equal to 0, I add ten to the score, display a message informing the player of the bonus, then sets that to invisible after 1 second. However, this causes 10 to be added to the score every frame, and I can't think of any other way to do it. help a newbie out please?