World

Water

Put lakes, puddles, rivers and an open sea in a map - drawing them, how deep characters can wade, their look, presets and textures.

Maps can have water of their own: lakes, puddles, rivers and open sea. You draw it in the Level Editor with the Water tool and tab. It is saved in the map's file, drawn by the game, shapes where characters can walk, and shows on the minimap.

The disc levels' own water and lava are part of their geometry and are unchanged.

Shapes

Shape Outline
Rectangle Two opposite corners
Polygon Three or more corners in order (it may be concave, but should not cross itself)
Ocean Everywhere: a surface over the whole level and 2,400 units past it, wherever the ground is below it

Every body is a flat surface at one height. Where several overlap, the highest surface above the floor wins.

Drawing water

Open Details > Water, or pick the Water tool:

  • Draw rectangle: drag on the ground.
  • Draw polygon: click the corners; Enter or a double-click closes it, Backspace takes the last corner back, Esc cancels.
  • Add ocean: a sea at the height of the ground under the cursor (or near the level's lowest point).

A new surface goes New water's depth above the ground where you started drawing.

Editing: click a body to select it, then drag its corners (snapped with the Snap setting). On a polygon, the handles between corners add a corner, and right-click removes one. Alt+click sets the surface to the clicked ground's height. Del deletes the body. Water bodies are also listed in the Outliner.

The viewport draws the water as the game does; Show water hides it while you work on what's under it.

Wading and deep water

Characters wade through water up to their waist: the body's wade depth, 36 units by default (a hero is about 70 units tall). Where the floor is deeper than that, the water blocks them: heroes can't step in, and monsters path around it. Nothing standing in deep water when the level starts is trapped: steps out are always allowed.

  • The floor under the water is the first solid surface below it, so a bridge across a lake stays walkable.
  • One wade depth serves every character, so it's set per body. Lower it so small creatures don't wade too deep; raise it for a ford.
  • Wading heroes splash and make water footsteps, as in the disc's water.

The look

Setting Means
Colour The deep water's colour
Clarity 0 murky .. 1 clear: how far down you see the floor (murky water is opaque a little way down)
Opacity How opaque the deep water is
Waves, Wave speed The swell's height in units (0: still) and speed. Waves fade toward the shore.
Texture The picture on the surface (below)
Texture scale World units one repeat spans (default 192)
Scroll How many repeats a second it slides, in x and y

The shallows are lighter and more see-through, and the water fades out entirely where it meets the ground.

Presets fill all of these at once; you can change each after.

Preset Look
Lake The default: blue-green, half clear, a gentle swell
Ocean Deep blue, a bigger slower swell, a larger texture
Swamp Murky olive, nearly still
Puddle Clear grey, faint
Lava-look Opaque orange, slow. Only a look: it does not burn
Ice Pale and still

Texture is one of:

  • Ripple, the default: a procedural ripple.
  • Disc textures: any texture of the disc by its path, with a liquids filter for the levels' water, lava and environment pictures. Nothing is copied: every player has the disc.
  • Custom image...: a PNG, JPG, TGA or BMP, copied into the mod as maps/textures/<file>.

New bodies take the look you edited last. Every change is one undo step.

Note Water has no reflections. A picture that fails to load draws the ripple instead, and the log says why.

On the minimap

The generated minimap walks the map as a character does, so it wades shallow water and stops at deep water. Shallow water is drawn in the disc maps' liquid blue; deep water beyond the shore in a darker blue, out to 1,200 units, so a lake shows whole and a sea shows its coast.

In the map file

Water is saved as [water.N] tables in maps/<id>.toml:

[water.0]
shape = "polygon"            # rect, polygon or ocean
name = "pond"
z = 42                       # the surface's height
points = [100, 200, 600, 180, 700, 520, 260, 640]   # x, y pairs (not for an ocean)
preset = "Lake"
color = [30, 90, 110]        # 0..255; keys beside the preset win over it
clarity = 0.6
opacity = 0.85
waves = 1.5
wave_speed = 1
wade_depth = 36
texture = "ripple"           # or a disc texture's path, or maps/textures/<file>
texture_scale = 192
scroll = [0.021, 0.013]