Determinance screenshot

Deformable Terrain

Got building destruction into Synapse yesterday and today, really looking forward to testing how it plays with Bin this afternoon.  EC should be excited too.

Destructable scenery is a hugely popular feature of any game, and it’s often (but not always) quite easy to add.   In a tile-based game (which Synapse isn’t) it’s usually almost ridiculously easy.  Just go through the squares which an explosion hits and swap out the sprite and collision properties.

Synapse’s was a little harder – we use arbitrary-size axis aligned boxes for our buildings and I just had to write an algorithm which geometrically subtracts one box from another.  That’s a *lot* easier with axis-aligned  boxes .  We’ll have to use some tricks to get the jagged nature of our deformed scenery to look ok, but I’m confident it will work.

Leave a Reply