ludic/assets/tiled-fixtures
Orkuncakilkaya 0cb57774d7
All checks were successful
bootstrap / cfree-fixpoint (push) Successful in 20s
ci / build-and-test (push) Successful in 1m51s
commit-lint / conventional-commits (push) Successful in 3s
docs / build-and-deploy (push) Successful in 28s
feat(stdlib): Tiled P2 — collision normalisation into the Solids feed (#70)
Normalise three collision sources into the byte tilemap esys_move / Grid.* /
Path.* read, in the design's priority order (§3.5):

- per-tile <objectgroup> hitboxes (Tiled.tile_shapes) — the precise source;
- the solid/oneway/trigger bool property convention (Tiled.collision_kind);
- the designated collision layer — any non-zero GID solid (Tiled.project),
  the fallback source, applied automatically on load.

Tiled.collide drives collision from a visual layer's per-tile metadata alone
(a tile with no collision metadata stays passable). tmap_collision_kind
classifies a GID (0 none / 1 solid / 2 one-way / 3 trigger) from its metadata;
the projection adds the collision-layer fallback.

Proven by library/tiled_p2.ludic (14 assertions): kind classification for each
source, the property convention and collision-layer fallback producing an
identical Solids feed, a per-tile-<objectgroup> floor blocking an esys_move
mover, and A* over a loaded map matching the hand-authored baseline. x test:
93 passed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-01 14:50:27 +03:00
..
collision.tsx feat(engine): Tiled P1 — rt_tmap model + GID resolver + render + projection (#69) 2026-09-01 14:43:29 +03:00
desert.tmx feat(stdlib): Tiled P0 — XML reader + base64 decode + gzip framing (#67) 2026-09-01 14:04:49 +03:00
desert.tsx feat(stdlib): Tiled P0 — XML reader + base64 decode + gzip framing (#67) 2026-09-01 14:04:49 +03:00
grid_maze.tmx feat(engine): Tiled P1 — rt_tmap model + GID resolver + render + projection (#69) 2026-09-01 14:43:29 +03:00
handmade.tmj feat(stdlib): Tiled P0.5 — TMX/TSX reader over the XML reader (#68) 2026-09-01 14:15:41 +03:00
handmade.tmx feat(stdlib): Tiled P0 — XML reader + base64 decode + gzip framing (#67) 2026-09-01 14:04:49 +03:00
handmade.tsx feat(stdlib): Tiled P0 — XML reader + base64 decode + gzip framing (#67) 2026-09-01 14:04:49 +03:00
hexagonal-mini.tmx feat(stdlib): Tiled P0 — XML reader + base64 decode + gzip framing (#67) 2026-09-01 14:04:49 +03:00
isometric_grass_and_water.tmx feat(stdlib): Tiled P0 — XML reader + base64 decode + gzip framing (#67) 2026-09-01 14:04:49 +03:00
orthogonal-outside.tmx feat(stdlib): Tiled P0 — XML reader + base64 decode + gzip framing (#67) 2026-09-01 14:04:49 +03:00
p2_map.tmx feat(stdlib): Tiled P2 — collision normalisation into the Solids feed (#70) 2026-09-01 14:50:27 +03:00
p2_tiles.tsx feat(stdlib): Tiled P2 — collision normalisation into the Solids feed (#70) 2026-09-01 14:50:27 +03:00
perspective_walls.tsx feat(stdlib): Tiled P0 — XML reader + base64 decode + gzip framing (#67) 2026-09-01 14:04:49 +03:00
physics_map.tmx feat(engine): Tiled P1 — rt_tmap model + GID resolver + render + projection (#69) 2026-09-01 14:43:29 +03:00
README.md feat(stdlib): Tiled P0 — XML reader + base64 decode + gzip framing (#67) 2026-09-01 14:04:49 +03:00
sewers.tmx feat(stdlib): Tiled P0 — XML reader + base64 decode + gzip framing (#67) 2026-09-01 14:04:49 +03:00

Tiled golden fixtures

The curated, version-pinned corpus for the Ludic Tiled reader (design record: Design: Tiled maps, issues #67–#74). No single Tiled file covers the format surface, so this is a subset of the official mapeditor/tiled examples/ tree plus a few hand-authored files for the gaps the official examples miss.

Vendored from mapeditor/tiled (examples/)

Fetched from https://raw.githubusercontent.com/mapeditor/tiled/master/examples/. Tiled's example assets carry their own licenses (see the upstream repo's per-folder *.license/README); vendored here with attribution for testing only.

File Exercises
desert.tmx + desert.tsx orthogonal, external .tsx, base64+zlib (P0/P1)
sewers.tmx orthogonal, base64+zlib, embedded tileset, opacity (P0)
orthogonal-outside.tmx object layers, shapes, custom properties (P4)
perspective_walls.tsx per-tile bool properties, <tileoffset> (P4)
isometric_grass_and_water.tmx isometric orientation, Wang set (P5)
hexagonal-mini.tmx hexagonal orientation (P5)

Hand-authored (CC0 / public domain)

File Exercises
handmade.tmx + handmade.tsx a 4×4 orthogonal map whose four layers carry the same GID array in CSV, base64-uncompressed, base64+gzip and base64+zlib — so every encoding path must decode identically. The last tile is GID 1 with the horizontal-flip flag (0x80000001), forcing real GID decode. handmade.tsx also carries a solid bool property and a per-tile <objectgroup> collision shape for P2.