Skip to content

Add palette.ppm preview, directional enemy sprites, and dungeon486 validation/go-to-definition

Mike Boyer requested to merge dungeon486-palette-preview-and-enemy-directions into main
  • palette.ppm renders as a 16x16 swatch grid; enemies in the level preview now show the real front/side/back guard sprite matching their facing= (side mirrored for west, per the spec's own rule) instead of one fixed placeholder.
  • Full local object-record validation (E2xx): enemy/item/prop/door/ board/exit syntax, ID uniqueness, placement/coordinate rules, and patrol reachability.
  • Cross-file/campaign validation (E3xx): textures/sprites/keys/weapon and ammo IDs/door styles/exit destinations/level_music now resolve against the sibling .dungeoncfg, and the guard enemy's 21-file directional frame set is checked for completeness. Bounded to one-or-two-hop resolution; full campaign-graph traversal (E303/W3xx) stays deferred.
  • symbols() + hover_at()-based go-to-definition for key/door_style/ weapon/track references, resolved by POSITION rather than name -- the spec's own worked example declares "bronze" as both a key and a door_style in one file, which a name-only lookup can't disambiguate.
  • Found and fixed two real bugs along the way: a test-isolation hazard where demo/'s upward campaign-root walk could reach the real pyide repo root, and a genuine gap in debug_demo's own fixtures (missing door_style declarations, an incomplete guard frame set).

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com

Merge request reports