Units
| Unit | Is |
|---|---|
sq | a square of the grid; 35 mm on DungeonBlocks, 25.4 mm on OpenLOCK |
mm | a printed millimetre: the same on every system |
in | a printed inch, 25.4 mm: the same on every system |
dmm | design millimetre: 1/35 of a square; 1 mm on DungeonBlocks, 0.73 mm on OpenLOCK |
layer | one printed layer: the printer's layer height |
deg | a degree |
rad | a radian: 180/pi degrees |
pi | the number pi: 2 pi rad is a turn |
% | a plain fraction: 50% is 0.5 (a length only inside a point) |
Read it in Units and kinds.
Functions
| Word | Takes | Kind |
|---|---|---|
sin | 1 | of numbers |
cos | 1 | of numbers |
abs | 1 | of numbers |
min | 2 | of numbers |
max | 2 | of numbers |
clamp | 3 | of numbers |
smooth | 1 | of numbers |
x | 2 | of a region and a unit, or a frame and two numbers |
y | 2 | of a region and a unit, or a frame and two numbers |
d | 2 | of a region and a unit, or a frame and two numbers |
a | 2 | of a region and a unit, or a frame and two numbers |
point | 3 | of a region and a unit, or a frame and two numbers |
polar | 3 | of a region and a unit, or a frame and two numbers |
parent | 1 | the region that holds a region |
The coordinates are x y d a parent.
Read it in Squares, cells and points.
Weightings
| Word | Numbers after the range |
|---|---|
flat | 0 |
low | 1 |
high | 1 |
bell | 2 |
peak | 2 |
ends | 2 |
steps | the weight of each step |
mix | parts and their weights in pairs |
Read it in Weighted ranges.
$ names
What an element sets where it works a height out: a body, a tree, any other element.
| Name | Body | Tree | Other |
|---|---|---|---|
$x | sets | sets | |
$y | sets | sets | |
$d | sets | sets | |
$a | sets | sets | |
$bottom | sets | sets | |
$tile | |||
$region | sets | sets | sets |
Read it in Names.
The library’s heights
| Name | Is | |
|---|---|---|
$waterBedHeight | 0.4dmm | the bottom of standing water: two print layers |
$waterSurfaceHeight | 2.6dmm | calm water |
$waterEdgeHeight | $waterSurfaceHeight + 0.6dmm * cos(720deg * ($x - $y)) | water at a tile edge: two waves a square |
$dirtEdgeHeight | 3.4dmm | where dirt meets a tile edge |
$groundHeight | 5dmm | open land |
$floorHeight | 7.4dmm | a built floor's top |
$floorEdgeHeight | $floorHeight | where a built floor meets a tile edge: flush |
$shortWallHeight | 16.55dmm | half the wall top |
$wallHeight | 33.1dmm | the standard wall top |
$tallWallHeight | 72.3dmm |
Read it in Heights.
Seam words
| Along a square’s edge | north | south | west | east |
|---|---|---|---|---|
| 1/3 (a third) | nnw | ssw | wnw | ene |
| 1/2 (half) | n | s | w | e |
| 2/3 (two thirds) | nne | sse | wsw | ese |
The tile’s corners: nw (north-west), ne (north-east), se (south-east), sw (south-west). They take no number.
Read it in Lines.
Numbers
| Land slope | 24°: how steeply dirt eases unless an entry says slope= |
|---|---|
| Water settle | 9 mm: how far water settles over what is under it |