The tile language · guide

The tile language

A tile is a short .dtile text file that names built-in elements (ground, dirt, grass, rock, tree, wall, cliff) and says where they go. Every length carries its unit (8dmm), points are written across and down from the tile’s north-west corner, heights read the library’s $ names, and character is described in words. Things are built in the order they are listed. The files are KDL v2 underneath.

The guide, in reading order

The guide is one page for each idea, and each page has the same shape: the finished thing first, as a live example you can change; the idea in two short paragraphs; the rules, each its own short section; the errors the page explains; and where to go next. Each page takes about five minutes or less, and loads alone.

  1. The tile document: the header line, the one tile and the words the guide uses.
  2. Syntax: nodes, properties, quoting, comments: the shape of a document.
  3. Squares, cells and points: the grid, the north-west corner, coordinates and how a point is written.
  4. Lines: lines through points, their width, wobble and curve.
  5. Seams: where a line may cross a square’s edge, the compass words, and fixing a tile.
  6. Regions: the paint-bucket model, regions that nest, and the places every tile has.
  7. The stack: the elements a tile is made of, built in the order listed, and what every entry takes.
  8. Placement and scatter: the place words, a thing on its own, and many of a thing.
  9. Values and ranges: quoted values as tiny expressions, counts and sums as dice.
  10. Weighted ranges: the nine weightings, lists and mixes.
  11. Units and kinds: lengths and their units, what scales, and writing a unit.
  12. Kinds: lengths, angles and plain numbers checked apart, and how the editor shows a length.
  13. Names: $ names and plain names, let and override, the library’s heights.
  14. Heights: tops, pins, and the notes the solver gives.
  15. Defaults and the edge contract: what every body starts from and how tiles meet.
  16. Clouds: a top with odds.
  17. Seeds: what fixes every roll, and how an entry keeps its own.
  18. Parts: use, define and param, for reusing a whole stack.
  19. Overhang and the gate: what every build is checked against before it is written.
  20. Reading errors: how a mistake is shown, and the four phases it is found in.
  21. Worked tiles: whole tiles that put the guide together.

Reference

This page was once the whole guide in one long page. A link to one of its old sections goes to the page that holds the section now (with scripting off, use the list above).