Sunday, October 2, 2011

Just Dicking Around

Nothing special planned for today, just gonna mess with a few bits of the code and see what the last bits do. The first time I did this I stumbled across a way to make the lasers spawn where I want them and how to change the color of said lasers, perhaps this will prove fruitful.

I decided to take a look at the animation class since I hadn't done much with it yet. I notice it tends to pass in a lot of variables when it gets called, 9 or so.

While playing the game I did notice 2 things. One I would like a new sound effect for when the enemy crashes into the player to let them know they were hit and they didn't just happen to destroy it at the last second (as that seems to happen a bit, the collision boxes may be a bit big. The second thing was that the sound effects still trigger when the game is over, not sure if for both play hitting enemy and enemy hitting player but I am leaning towards just enemy hitting player by virtue of there being so few instances of the sound (and it happening once, not several times).

Turned off it was both player hitting enemy and enemy hitting player, but adding an if statement fixed it.

I also checked out the parallaxing background class but there wasn't much to experiment with there, everything looked pretty good. Might want to check out the game1 class's collision method, make the hit boxes a little smaller if possible.

Next time I aim to add and implement a sound effect for enemy ship and player collision. Also could probably make new enemy types by making new enemy.cs documents and doing a minor bit of code implementation.

No comments:

Post a Comment