Error code · a mistake in the document
dt::tile-name
A tile takes no name: its file name is its name.
What the program says
dt::tile-name
× a tile takes no name: its file name is its name
╭─[example.dtile:2:6]
1 │ dharmatiles version="1.0.0"
2 │ tile pond size="1x1" {
· ──┬─
· ╰── remove this
3 │ stack { dirt }
╰────
help: write `tile size="2x1" seed=1 { … }`; rename the file to rename the
tile
explain: https://shawn-vincent.github.io/dharmatiles/e/tile-name
offline: dharmatiles explain dt::tile-name
What to do
Remove the name from the tile line and name the file instead.
Broken, then fixed
dt::tile-namedharmatiles version="1.0.0"
tile pond size="1x1" {
stack { dirt }
}dharmatiles version="1.0.0"
tile size="1x1" {
stack { dirt }
}The rule
A tile document is one
.dtilefile holding exactly onetilenode, after a header line. The tile has a size and a seed, and a body with (its file name is its name:tiletakes none):
Read it in context: The tile document · A tile document is one tile after a header