feat(bindings): magic-map rendering, validation and docs #406

Merged
jqueuniet merged 6 commits from feat/402-magicmap-bindings into main 2026-10-29 21:23:15 +01:00
Owner

Last of four stacked PRs for #402; based on the render PR.

  • dungeon_map_png in dm2-convert, wasm dungeonMapPng, FFI dm2_dungeon_map_png, Python dungeon_map_png.
  • Validated against the DMDC2 atlas: DOS-EN levels 1-3 match pixel for pixel for walls, floors, pits, doors and stairs; the remaining differences trace to the atlas's own conventions.
  • Docs: a Magic map section in docs/formats/dungeon-dat.md, crate READMEs, CHANGELOG.
  • An in-game check is pending: map 22 layout and tick length.

Refs #402

https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw

Last of four stacked PRs for #402; based on the render PR. - `dungeon_map_png` in dm2-convert, wasm `dungeonMapPng`, FFI `dm2_dungeon_map_png`, Python `dungeon_map_png`. - Validated against the DMDC2 atlas: DOS-EN levels 1-3 match pixel for pixel for walls, floors, pits, doors and stairs; the remaining differences trace to the atlas's own conventions. - Docs: a Magic map section in `docs/formats/dungeon-dat.md`, crate READMEs, CHANGELOG. - An in-game check is pending: map 22 layout and tick length. Refs #402 https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
Refs #402

Claude-Session: https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
MagicMapError already names the map; the extra prefix printed
"map 1: map 1: ...". Test covers the per-map skip path.

Refs #402

Claude-Session: https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
Cell rules, ornaments, border tilesets, creatures, animation and the
TICK_MS assumption, with SKWINSPX citations and the DMDC2 atlas
comparison. Correct the floor bit-3 and imaginary trick wall notes.

Refs #402

Claude-Session: https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
Only open trick walls with attribute bit 3 use the border tileset; rewrap the wall-sides bullet.

Refs #402

Claude-Session: https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
docs(bindings): list dm2-magicmap among the wrapped crates
All checks were successful
CI / msrv (1.90) (pull_request) Successful in 46s
CI / audit (pull_request) Successful in 12s
CI / stable (pull_request) Successful in 1m29s
CI / python bindings (3.11) (pull_request) Successful in 32s
39ce923aef
wasm and FFI READMEs.

Refs #402

Claude-Session: https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
jqueuniet changed target branch from feat/402-magicmap-render to main 2026-10-29 21:11:31 +01:00
fix(magicmap): use the measured 134 ms game tick
All checks were successful
CI / msrv (1.90) (pull_request) Successful in 28s
CI / audit (pull_request) Successful in 19s
CI / stable (pull_request) Successful in 55s
CI / python bindings (3.11) (pull_request) Successful in 25s
82f98d1a87
Two DOS EN saves written 608 s apart record game ticks 4544 apart,
7.47 per second; the 166 ms assumption animated too slowly in-game.

Refs #402

Claude-Session: https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
jqueuniet deleted branch feat/402-magicmap-bindings 2026-10-29 21:23:16 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jqueuniet/dm2-tools!406
No description provided.