It's great when things just come together.
I moved all the collision detection stuff into the moving game objects so now any object I create will automatically respond properly to gravity and tiles! Getting the mushroom to move and bounce off objects was a simple task.
The next not-so-simple task is to have the mushroom disappear and power up Mario when it touches him. For this I need to slightly modify my OnHit() classes so everything plays together nicely. As it stands now, if I implement a jumping enemy it will also be able to break blocks. I started the changes but haven't finished them yet.
Here's a video of the mushroom in action. Nothing too exciting.
No comments:
Post a Comment