2013-02-06 Doors and more

I added doors to the game.  It took way too long – I was setting a vector3D to = another and not a copy so all the doors were going down when only some should.  Doors now stay up if you are on the edge of the map to indicate to the player that that exit is not available.  I also added the final power ups for the game:

  • LifeContainerUp – adds to the max HP
  • SpeedUp – Increases player speed
  • HeatMaxLevelUp – Increases max heat of weapon, which gives longer firing before overheating
  • DamageUp – Increases each shot’s damage

I added a 3rd room for variety as well.  I accidentally created a recursion bug when setting the weapon’s upgrades when switching weapons.  I wanted to be sure to give the up grades to whatever weapon the player has, but in doing so I kept re-adding them and re-adding them forever.  Seeing the flash debugger just freeze was scary.  I thought it was my machine so I rebooted it and the problem was still there, of course.  Took a while, but finally fixed it.

So, next up some mob collision logic and a boss room.  Latest video below.

Shockbots_2013.02.06

Leave a Reply

Your email address will not be published. Required fields are marked *