Google+

Wednesday, September 7, 2011

Let's Make A Game! Episode 16: BAYSPLOSION

I'm now in the part of the tutorial that discusses making explosions. I threw it all together and ended up with no explosions. Now, I've done all this stuff before. How come it wasn't working? I went back through and looked at my code.

The instructions were thusly: I was supposed to put this code:
// If not active and health <= 0

if (enemies[i].Health <= 0)

{

// Add an explosion

AddExplosion(enemies[i].Position);

}
In the UpdateMethod() method. I was sure I had done that, but I put it in the wrong place. I put it in the right place, and we now have this:
BAYSPLOSIONS
So this wasn't the most exciting episode. I'm sorry to disappoint. However, it's exciting for me because I noticed a problem, went through and figured out where it was. That's exciting for me. I'm excited.