Recent Changes - Search:

Main.SideBar (edit)

PmWiki

Water

Water

How are lakes created?

Each lake has an origin point and level. Ground height at origin point must be lower than lakes's water level.
When a lake is created (more specifically, in BoLake::findWater()), a flood-fill algorithm is used to find all corners with a height less than lake's level. Note though, that the algorithm doesn't go further if it finds a corner which is not below lake's level. E.g. if you have such a map:

,,,x...
,,,x.o.
,,,x...

where "o" is origin point of the lake, "." and "," are corners with height less than lake's level and "x" is corner with height more than lake's level. The algorithm will not touch the "," corners, which are left of "x"-corners (that is, those corners will not be under water).

Edit - History - Print - Recent Changes - Search
Page last modified on January 11, 2005, at 17:55