mspraggs / potentia

Southampton Game Jam 2015
0 stars 0 forks source link

Ice Tiling not working #69

Closed DivFord closed 9 years ago

DivFord commented 9 years ago

I didn't put an update call in the block changing function, only in the erase one. I'll fix this at some point.

DivFord commented 9 years ago

Wow, this was not the quick fix I expected.

The problem was that ice was refreshing tiling while the water block was dead, but still present. Since there was a dead neighbor, it added an edge, even though there was also a live neighbor.

I've reworked tile update, so it now sets all bits to true, and deactivates them when it finds a matching neighbor block, rather than having them all false and activating them when it fails to find any.

This does mean that blocks at the bottom of the screen get a bottom edge. Not sure whether that's problematic.