Haydoggo / Beach-Escape

MIT License
0 stars 0 forks source link

some levels don't end #17

Closed plexsoup closed 8 months ago

plexsoup commented 9 months ago

I played the procedural levels and got stuck on the third or fourth level. I had no units left to send, and lots across the finish line, but the game didn't end.

Find the source of the bug and/or add a "nothing happening" timer as a workaround hack.

Levels should always end.

plexsoup commented 9 months ago

This appears to be related to the pelican. If the pelican is killed while holding a fish, the level believes there's 1 more fish than there should be remaining on the field.

plexsoup commented 9 months ago

I've added validation tests to remaining fish, to make sure they're actually in the tree, alive, and not captive. This appear to have fixed the issue with levels never ending after a pelican died with a fish in its beak.