McRogueFace/tests/demo/screens
John McCardle 3030ac488b Add interactive pathfinding demo for #315; closes #315
tests/demo/screens/pathfinding_demo.py runs three panels side-by-side:

  Panel 1 - A* with selectable heuristic. Keys 1-5 cycle EUCLIDEAN, MANHATTAN,
            CHEBYSHEV, DIAGONAL, ZERO. Q/W bump the weight by 0.25 to show
            weighted A* behaviour.
  Panel 2 - Dijkstra flood from a cursor-controlled root. Arrow keys move the
            cursor; the distance field re-renders as a blue gradient.
  Panel 3 - Multi-root FLEE: three guard entities flee from a shared set of
            threats using an inverted multi-root DijkstraMap, animated one
            step per timer tick. T adds a new threat; R resets.

Exercises the new surface: mcrfpy.Heuristic, Grid.find_path(heuristic=,
weight=), Grid.get_dijkstra_map(roots=...), DijkstraMap.invert(), and
DijkstraMap.descent_step().

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 09:19:17 -04:00
..
__init__.py refactor: comprehensive test suite overhaul and demo system 2025-11-25 23:37:05 -05:00
animation_demo.py refactor: comprehensive test suite overhaul and demo system 2025-11-25 23:37:05 -05:00
base.py update tests: new scene API 2026-01-03 10:59:52 -05:00
billboard_building_demo.py billboards 2026-02-04 20:47:51 -05:00
caption_demo.py refactor: comprehensive test suite overhaul and demo system 2025-11-25 23:37:05 -05:00
color_demo.py refactor: comprehensive test suite overhaul and demo system 2025-11-25 23:37:05 -05:00
entity3d_demo.py 3D entities 2026-02-04 17:45:12 -05:00
focus_system_demo.py Remove legacy string enum comparisons from InputState/Key/MouseButton, closes #306 2026-04-09 22:19:02 -04:00
frame_demo.py refactor: comprehensive test suite overhaul and demo system 2025-11-25 23:37:05 -05:00
grid_demo.py docs: Update grid demo and regenerate API docs 2025-12-02 09:21:43 -05:00
integration_demo.py 3D target demo 2026-02-04 23:41:37 -05:00
ldtk_demo.py LDtk import support 2026-02-07 11:34:38 -05:00
model_loading_demo.py glTF model loading 2026-02-04 19:35:48 -05:00
navigation_demo.py pathfinding on heightmap 2026-02-04 16:36:21 -05:00
navigation_screenshot.py Test suite modernization 2026-02-09 08:15:18 -05:00
pathfinding_demo.py Add interactive pathfinding demo for #315; closes #315 2026-04-18 09:19:17 -04:00
primitives_demo.py refactor: comprehensive test suite overhaul and demo system 2025-11-25 23:37:05 -05:00
skeletal_animation_demo.py rigging and animation 2026-02-04 23:19:03 -05:00
terrain_demo.py Terrain mesh, vertex color from heightmaps 2026-02-04 14:51:31 -05:00
tiled_analysis.py Tiled XML/JSON import support 2026-02-06 21:43:03 -05:00
tiled_demo.py Add edge-type Wang path overlay as 3rd layer in tiled demo 2026-04-01 11:27:33 -04:00
village_demo.py voxel, animation, and pathfinding combined demo 2026-02-05 22:57:08 -05:00
voxel_core_demo.py Voxel functionality extension 2026-02-05 12:52:18 -05:00
voxel_dungeon_demo.py Voxel functionality extension 2026-02-05 12:52:18 -05:00
voxel_meshing_demo.py voxel example 2026-02-05 10:49:31 -05:00
voxel_navigation_demo.py Voxel functionality extension 2026-02-05 12:52:18 -05:00
voxel_serialization_demo.py Voxel functionality extension 2026-02-05 12:52:18 -05:00