DiddiLeija / diddi-and-eli

Diddi and Eli: a platformer game with scaling challenges.
MIT License
2 stars 0 forks source link

Some mobs are "defeated" without being touched by a bullet #6

Closed DiddiLeija closed 6 months ago

DiddiLeija commented 7 months ago

While testing the gameplay, I noticed some hostiles are automatically defeated on strange circumstances. For example, if you send a bullet when the mob hasn't showed up yet, get close to the mob, turn back and turn forward.

I'd say this is related to a bad management of player bullets, so I'll investigate that.

DiddiLeija commented 6 months ago

Here's an example of the issue (that I took when working on 879f85f26e5c6bc9540ae3f6655a3476f7851711):

pyxel-20240410-184924

Here, the third onion wasn't supposed to be defeated, since I didn't send a bullet to it. However, it happened.

DiddiLeija commented 6 months ago

Due to the circumstances where this is happening, I'm almost sure that's related to the management of "dead bullet objects". In the next days I'll be working on a fix :wink: