After laborious debug sessions I have something that don't crash after few seconds.
The collision detection now works fine. The bottom screen flashes when a detection occurs (just a test feature). Red screen for a projectile hitting an ennemy and a green one when the hero is touched by a dangerous bob.
The way, our hero elimates an ennemy is described like this :
Hit ennemy with tomatoes, after several hits the ennemy turns into a big red ball. To finish him, you may pass through the ball and it will be ejected, slams against the walls and disappear.
Need to make the smoke trail a little bit more bigger. Carefull because if the player decide to hit 3 or 4 big balls in a row, it will add a lot of bobs during the next frames. The risk is a slowdown, but I'll try to avoid it.
The ennemy turned into a big red ball stays levitating during few seconds before returning to normal state if nothing happens.
[ Show youtube player ]
|