Wednesday, November 2, 2011

More odds and ends

Well I have a handful of things I want to fix. The enemy spawning before the boss, making all the sounds quite when you win, the lasers not firing regularly for the enemies are starting to bug me the more I play it.

By adding a line into the if statement where the boss boolean checker is setting the player to be inactive it turns off the player laser, though I still get the Game Over screen under the You Win! Screen. That shouldn't be a problem if I make it big enough to fill up the entire screen.

The first order of business then is to re-size the You Win image to the same dimensions as the screen so it completely covers the Game Over screen that will be right beneath it. Also need to make sure the score shows up too.

Changing the size of the You Win worked perfectly, as did simply changing the color the score would be drawn in (since it was white on white before).

Lastly I wanted to fix the ship spawning when the boss does.

And THAT was easily fixed by realizing that the if bosscounter==9 statement was right below the normal one that increased the bosscounter so when the bosscounter was at 8 it would increment up to 9, then check if it was 9 (which it would be) and immediately spawn the boss. Simply a matter of moving a box of code above a different block of code.

Wow, managed to do all that without messing up for a while. Each fix was pretty much what I thought it would be initially.

Next time: Lasers!

No comments:

Post a Comment