feat(magicmap): level images and creatures by default #411

Merged
jqueuniet merged 3 commits from feat/409-level-images into main 2026-10-29 22:13:04 +01:00
Owner

First of two stacked PRs for #409.

  • Creatures on by default. RenderOptions::default() draws them, the CLI's --creatures becomes --no-creatures, and Python's dungeon_map_png defaults to creatures=True. Nothing with the old default has been released.

  • Level layout. level_layout / levels place a level's maps at their shifts. Where several maps claim a cell:

    1. A map exit or connector teleporter (blocks_passage) gives way to another map's real tile.
    2. A tile inside its map beats one on another map's outer edge.
    3. Otherwise the earlier map wins.

    A DOS-EN test finds the 2275 shared cells counted for the design.

  • Rendering. The renderer now draws a list of placed cells, each as its own map draws it. render_level_png places a level, and render_map_png keeps byte-identical output: a one-map level matches its map image exactly.

Refs #409

https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw

First of two stacked PRs for #409. - **Creatures on by default.** `RenderOptions::default()` draws them, the CLI's `--creatures` becomes `--no-creatures`, and Python's `dungeon_map_png` defaults to `creatures=True`. Nothing with the old default has been released. - **Level layout.** `level_layout` / `levels` place a level's maps at their shifts. Where several maps claim a cell: 1. A map exit or connector teleporter (`blocks_passage`) gives way to another map's real tile. 2. A tile inside its map beats one on another map's outer edge. 3. Otherwise the earlier map wins. A DOS-EN test finds the 2275 shared cells counted for the design. - **Rendering.** The renderer now draws a list of placed cells, each as its own map draws it. `render_level_png` places a level, and `render_map_png` keeps byte-identical output: a one-map level matches its map image exactly. Refs #409 https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
`RenderOptions::default()` draws creatures; the CLI's `--creatures`
becomes `--no-creatures` and Python's `dungeon_map_png` defaults to
`creatures=True`.

Refs #409

Claude-Session: https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
A level's maps sit at their shifts; where several claim a cell, a map
exit or connector teleporter gives way to a real tile, a tile inside its
map beats another map's edge, and the earlier map wins otherwise.

Refs #409

Claude-Session: https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
feat(magicmap): render level images
Some checks failed
CI / msrv (1.90) (pull_request) Successful in 30s
CI / audit (pull_request) Successful in 39s
CI / stable (pull_request) Successful in 1m34s
CI / python bindings (3.11) (pull_request) Successful in 32s
CI / audit (push) Has been cancelled
CI / python bindings (3.11) (push) Has been cancelled
CI / msrv (1.90) (push) Has been cancelled
CI / stable (push) Has been cancelled
f9cc0239d7
The renderer draws a list of placed cells, each drawn as its own map
draws it; a map image places one map, `render_level_png` places a
level's maps per its layout.

Refs #409

Claude-Session: https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
jqueuniet deleted branch feat/409-level-images 2026-10-29 22:13:04 +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!411
No description provided.