EXPLODING MICE!
Now when you start playing, the mice are varied sizes, not just all small. And I changed the behavior so when the mice grow to maximum size, they start destroying computer panels for a full minute before spawning off into more tiny mice. The values still need adjusting.
In this first iteration, the destroying doesn’t happen too much, but it happens enough. I like the effect of being in one part of the maze while hearing things explode in another part of the maze. I was really excited when I wrote/added all the code and it basically worked first time out. However, when the mice would destroy the computer panels, when the panels exploded, they ended up blowing the mice up, too. Haha.
I didn’t see that coming. But I was able to figure out a quick workaround through complete happy accident. Basically, each panel has hit points. And when you shoot them, they take damage. When their damage is => hit points, they explode. That's when taking damage from shooting bullets.
I forgot I had set it up that way, so when the mice start attacking the panels, I was subtracting damage. I was like, “Why aren’t they blowing up?!? Oh, they have like -3500 damage," but they blow up when they have +100 damage. Wrong direction!
I want the mice to die when you shoot panels and they get hit with debris, but I don’t want the mice to explode when they destroy the panels themselves.
What I did was, when damage > hit points, it explodes, hurting mice. But when damage < -hit points, it now explodes in a non-lethal way, that blows up but doesn’t affect mice. That only took like 10 minutes to figure that solution out. :)













