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.

Movement and Explosions!

So I decided to change the movement of "bomber man" to a more grid like movement. This solves the problem of planting bombs in between walls and what not. As for explosions, every time a bomb explodes, a 5 new explosions are created, forming a "+" shape with a new explosion in each grid square. Now I'm trying to figure out how to tell the explosions not to draw over walls. Im attempting to do this without collision detection b/c since everything is in a grid, I know where everything is.

Thursday, April 22, 2010

Collision Detection

Over the last few days I worked on collision detection between the player and the walls. I wanted to use a different kind of code from the one used in the arenaGame but after a little bit of experimenting, I found I couldn't create a better way of collision detection and movement; therefore I fell back to the original code. Next, Im trying to make sure that when a bomb is dropped, it's placed right next to a box, not in between two or whatever. Now that i think about it, it should probably be the same thing for the player.

Monday, April 19, 2010

Intro

So we are in python class and we are starting our final project. For our final project we have to create a game of our choice. I chose bomberman and have gotten off to a good start. I have a basic outline of what I need to create and what problems Im going to have to over come. As of now, I have borrowed some file importing code from one of our last projects to allow me to import txt files to create levels.