Just thought that it could work well to have the machine collapsing in addition to exploding.
Btw, what an improvement in character design compared to Johnny Biscuit Romp
Yeah it might feel good to destroy the whole thing - I'll consider that when I next make improvements to it. I at least want to have bits of metal flying off!
Happy that someone remembers Johnny Platform! Me and a couple of friends made the first version of that in about a week, so it didn't have as much time put into it as Leilani
FruitsI've continued working on adding some interactive fruits to the game!
The coconut was previously in the game, but it had some bespoke code that was totally out of date. I've now ripped most of that code out, and the various fruits are now actually just enemies that don't move around. It's much better to reuse all of the enemy code, as it means all the interactive things in the game will behave more consistently.
Later on in the game I'll have metal bombs that also behave in the same way. I want the player to have plenty of chance to mess around with relatively harmless objects like these so they will be able to make good use of objects like bombs later.
So whilst working on these, I've made some good improvements to the enemies and enemy interactions.
- Entities now have a weight class. The watermelon is heavy, which alters how it interacts with other objects - for example it smashes through small blocks without stopping.
- I've simplified the collision code that decides whether Leilani is hitting the top or the side of an object. This code has had various revisions but I think it was pretty overcomplicated.
- Made improvements to general collision responses between enemies and Leilani. It all gets a bit fiddly when the enemies are bouncing around in tight spaces, so I'll continue to improve them over time. Collisions between two enemies also need a lot of work - at the moment, sometimes they will end up sitting inside each other, and sometimes they'll ricochet off each other like crazy.
- Made improvements to the screen shake system to support a continuous shaking when heavy objects roll.