Writing it
dharmatiles version="1.0.0"
use "parts/grass" lawn long-grass
use "./my-parts" mossy-bank
tile size="2x2" { stack { base; dirt; lawn } }
Reference
| Path | Means |
|---|---|
"parts/grass" | The bundled library's parts/grass.dtile. "lib:parts/grass" says so explicitly. |
"./mine", "../shared/x" | A file in your own project, relative to this one. |
| names after the path | The definitions to bring in. Only these can be called. |
The path is written without .dtile. Anything else is an error that says what to write. A tile and the parts it uses are written in the format the program reads; a part of format 0 is refused (dt::format-0).
Notes
The library's parts: parts/grass (lawn, long-grass), parts/trees, and two every document sees without a use: parts/heights and parts/edges. See define for writing your own.
Seen from the language
The guide pages that use use: The tile document, Parts.
