week 7: Boomberman Game movement

This week we started by finishing the map it printed out every thing and it looked good! The problem we had was minor. We had said that it should print out blocks solidblocks and background in the wrong order. This was fixxed easy by changing up in what order they was printed out in.

We also started working on movement. We managed to print out the player on screen and got him to walk. But we wanted our movement to be tilebased. The movement worked if you would pressed down a button you moved a certain pixels. This worked and looked really smooth. But we wanted it to be tilebased so we had to figure out how to make the player stop at the nearest block.

We tried to do a snapping function that snapped the player the block that was closest to the player when the button where released. This we worked on and almost got it to work when we realized that it was not a good way to solve the tilebased movement on. So we deleted every thing.

We now worked on the new movement that would move the player one tile but with a timer that checked how many times the player had walked since the button where pressed. This way we walked 1 tile but it did not feel to fast or to slow. The tile based movement worked and now you could move by each pressing down and release or just hold down the button.

 

About Love Åkerlund

2014  Programming