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>
|
||
|---|---|---|
| .. | ||
| ldtk | ||
| screens | ||
| screenshots | ||
| __init__.py | ||
| audio_synth_demo.py | ||
| cookbook_showcase.py | ||
| demo_main.py | ||
| new_features_showcase.py | ||
| perspective_patrol_demo.py | ||
| procgen_showcase.py | ||
| simple_showcase.py | ||
| tutorial_screenshots.py | ||
| tutorial_showcase.py | ||
| viewport3d_demo.py | ||
| viewport3d_screenshot.py | ||