Tuesday, November 1, 2011

Extra bits and pieces

The boss has been added, now I just need to fix up a few things to make it look better as stated last time.

The first and seemingly easiest thing for me to fix was the last enemy spawning at the same time as the boss (which wouldn't be so bad except it moves so slow that you're fighting it and the boss for a bit and the boss won't fire until it is off screen).

By doing what I thought last time, making the 2nd enemy spawn only if the boss counter (that goes up one every time the second boss goes up) is at less than 9 and adding a new if statement that spawns the boss if the bosscounter is exactly 9 I found that it worked exactly as planned.

Next I needed a screen for when the boss was defeated. Maybe eventually starting a level 2 or something, but for now I just need to have a You Win! screen.

After grabbing a quick one off of Google and loading it into Visual Studios as well as initializing it and whatnot I searched for where exactly I put the gameover screen, thinking I could use some of the code there (Like the statements that turn off the sounds and displays when the game is over).

Wouldn't let me use Boss.Active like it did with player.Active since even though there is only one boss it is still in a list. There is probably a way I could use it somehow, but I found it easier to just make a global bool variable that turns false if the boss dies and use that as a workaround.

It works in theory. For some reason the enemy spawned right before the boss again (something to do with boss counter counting up from 0 instead of 9 that I set it at for quicker testing?) and the YOU WIN screen only takes up a fraction of the screen and the other actions are still going. The last problem is easily fixed by setting the player status to false when the boss dies (since there are if statements abound that turn off a bunch the extra sounds when player status is false. I just have to worry about the gameover screen popping up if the player status is false). Anyways, more stuff to work on tomorrow.

No comments:

Post a Comment