Skip to content

five-on-it / apps/level-editor/src/scripts/blocks/water

apps/level-editor/src/scripts/blocks/water ​

Marks a node of the editor scene as a surface of water or lava: the middle of the surface on the node's origin, scaled to its width (x) and depth (z), turned by quarter turns only; kind is water (waded, swum, sunk in) or lava (deadly). The ground under it is its bottom, the ground over it its shore. The library's block:water carries it: place instances of that mesh for npm run level:export to read.

Classes ​