Tower Collapse Inner Workings
Since there have been a few question regarding the “simulation” i’ll explain a bit:
There is no grand simulation inside. It’s all tile based. I refrained from using a physics lib (there have been enough entries with one already) because i’d have to learn it during the compo time.
Every tile has two damage counters, one outer, one inner. The outer is mostly used for the appearance (cracks in the window) while the inner is responsible for the strength left. Once the inner structure value is down to zero the tile collapses.
Collapsing is done by moving all the tiles above one tile down. The tile below the collapsed one gets a damage applied which is calculated by the number and “health” of the tiles above it. This can lead to nice chain reactions of a column collapsing in itself.
Since the collapsing code only works vertically i have the particles. Half of the particles are able to inflict damage when hitting other tiles. Therefore it’s also possible to have columns affect each other.
Oh, and about Twin Towers: You actually have to raze the two towers on the left and right and protect the building in the middle. That’s probably the reason why some can fail spectacularely in that stage.
Did i mention that the game also has flying toilets?