Error code · a mistake in the document
dt::point
A point is outside the tile or the region it is written in.
What the program says
dt::point
× `(2sq, 0.5sq)` is off the tile
╭─[example.dtile:3:13]
2 │ tile size="1x1" {
3 │ point p "(2sq, 0.5sq)"
· ───────┬──────
· ╰── outside the tile
4 │ stack { dirt }
╰────
help: this tile is 1x1 squares: across runs 0 to 1, down from the north 0 to
1
explain: https://dharmatiles.healtoletgo.com/e/point
offline: dharmatiles explain dt::point
What to do
Move the point inside the box the message gives.
Broken, then fixed
dt::pointdharmatiles version="1.0.0"
tile size="1x1" {
point p "(2sq, 0.5sq)"
stack { dirt }
}dharmatiles version="1.0.0"
tile size="1x1" {
point p "(0.5sq, 0.5sq)"
stack { dirt }
}The rule
A point has two halves, across and down, written in parentheses and quoted, each half a length:
"(0.65sq, 0.5sq)". A half may be in any length unit, or a%, which here is a length: the share of the frame's width (or height),"(50%, 0.25sq)". A tuple is a point in the frame it is written in: the tile, unless it sits in a pin of a body that acts in a named region, where it is that region's own corner.