Thursday, September 8, 2011

Spring object

I have been playing around with idea of objects which act as a source of liquid. When this 'spring' is placed on the dungeon tile it starts to generate more of given liquid type. This spring has a initial depth attribute which indicates what is the maximum depth of formed pool. It has also volume attribute which tells how far from the source it will expand. With only these two attributes we can form a lake inside cavern/tunnel whatever, in center would be the deepest place and towards sides it would get more shallow.

One could maybe set a direction attribute also so it would be easier to form river like pools.

Anyway with this kind of springs we could create melting walls from fireblast. Or maybe if player blasts or digs a wall and theres water behind it, it would start filling the room the player is in...

This was inspired from JADE blogpost about lakes and pools.

No comments:

Post a Comment