ludic/assets/tiled-fixtures
Orkuncakilkaya 764a0296ce
All checks were successful
bootstrap / cfree-fixpoint (push) Successful in 22s
ci / build-and-test (push) Successful in 2m4s
commit-lint / conventional-commits (push) Successful in 4s
docs / build-and-deploy (push) Successful in 28s
feat(stdlib): Tiled P6 — infinite/chunked maps, .world stitching, base64+zstd (#74)
- Infinite/chunked maps: <chunk x y width height> (TMX) and JSON chunks[]
  (default 16x16) decode and flatten into the dense layer array, sized to the
  chunk union; the map's 0/0 header dimensions fall back to the flattened bounds.
- .world stitching: Tiled.world / Tiled.world_count / Tiled.world_map read a
  .world (JSON, reusing Json.parse) and list its member maps at their offsets.
- base64+zstd: a self-contained pure-Ludic Zstandard decompressor
  (runtime/native/zstd.ludic, RFC 8878) — the design's "largest single item,
  explicitly last". Frame header + raw/RLE/compressed blocks; raw/RLE and
  direct-weight Huffman literals; the full FSE sequence path (predefined,
  transcribed exactly from zstd's hardcoded tables since they're not rebuildable
  from the default distributions; RLE; FSE-described) with repeat offsets and
  execution. Decodes the low-entropy GID streams a tilemap produces; a high-
  entropy FSE-compressed-Huffman-weights block fails cleanly with -1 rather than
  emitting wrong bytes (documented scope).

Proven by library/tiled_p6.ludic (12 assertions): TMX + TMJ chunk flattening,
.world offsets, and a real zstd-compressed tile layer decoding byte-exactly to
its CSV baseline. x test: 97 passed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-01 16:07:10 +03:00
..
anim_map.tmx feat(engine): Tiled P3 — animated tiles (deterministic frame clock) + tile objects (#71) 2026-09-01 14:58:21 +03:00
anim_tiles.tsx feat(engine): Tiled P3 — animated tiles (deterministic frame clock) + tile objects (#71) 2026-09-01 14:58:21 +03:00
beach_tileset.tsx feat(engine): Tiled P3 — animated tiles (deterministic frame clock) + tile objects (#71) 2026-09-01 14:58:21 +03:00
collision.tsx feat(engine): Tiled P1 — rt_tmap model + GID resolver + render + projection (#69) 2026-09-01 14:43:29 +03:00
demo.world feat(stdlib): Tiled P6 — infinite/chunked maps, .world stitching, base64+zstd (#74) 2026-09-01 16:07:10 +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
img_group.tmx feat(engine): Tiled P5 — image/group layers, iso/hex/staggered coords, Wang (#73) 2026-09-01 15:14:36 +03:00
infinite_map.tmj feat(stdlib): Tiled P6 — infinite/chunked maps, .world stitching, base64+zstd (#74) 2026-09-01 16:07:10 +03:00
infinite_map.tmx feat(stdlib): Tiled P6 — infinite/chunked maps, .world stitching, base64+zstd (#74) 2026-09-01 16:07:10 +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
p4_enemy.tx feat(stdlib): Tiled P4 — objects, custom props/types, templates, opt-in spawn (#72) 2026-09-01 15:08:06 +03:00
p4_map.tmx feat(stdlib): Tiled P4 — objects, custom props/types, templates, opt-in spawn (#72) 2026-09-01 15:08:06 +03:00
p4_types.xml feat(stdlib): Tiled P4 — objects, custom props/types, templates, opt-in spawn (#72) 2026-09-01 15:08:06 +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
zstd_map.tmx feat(stdlib): Tiled P6 — infinite/chunked maps, .world stitching, base64+zstd (#74) 2026-09-01 16:07:10 +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.