Closed city41 closed 3 years ago
hmm, well allowing PoolOfWater to choose its greediness does help:
But doesn't solve the problem. The true fix might be to kill the notion of cell based entities altogether and instead a pool of water is created by using drag handles
The real solution is ChoppyWater, PoolOfWater, Waterfall and Lava should not be cell entities.
This was fixed with 9dde7f75d1889e77d16906e621205cc3e3618f36
createLevelData is greedy on cells in the x direction. Usually this is fine, but it can cause issues such as this level:
Ending up like this once played:
This is because createLevelData divided up the water into three rects trying to maximize x. If it had maximized y instead, the result would be what the user expected to see.
Allow entities to indicate they prefer greediness on a certain axis to fix this issue.