Wednesday, April 28, 2010

Explosions WORK!!

Now my explosions stop at walls. I did this by comparing the walls' gridPos to the explosions' gridPos; if they are the same, the explosion is not drawn there. Also, I made it so a player cannot move through a bomb. Next I will make bombs be able to predetonate bombs and boxes that are able to be destroyed by bombs.

1 comment:

  1. Are the walls always at the same locations? I wonder if there is a mathematical way to determine whether a given grid location has a wall in it, so you don't have to loop through all the wall pieces to check. In theory, that would make it faster, though you may not need to worry too much about speed/performance in this game.