Commit Graph

1 Commits

Author SHA1 Message Date
John McCardle 051a2ca951 feat(demos): enhance interactive pathfinding demos with entity.path_to()
- dijkstra_interactive_enhanced.py: Animation along paths with smooth movement
  - M key to start movement animation
  - P to pause/resume
  - R to reset positions
  - Visual path gradient for better clarity

- pathfinding_showcase.py: Advanced multi-entity behaviors
  - Chase mode: enemies pursue player
  - Flee mode: enemies avoid player
  - Patrol mode: entities follow waypoints
  - WASD player movement
  - Dijkstra distance field visualization (D key)
  - Larger dungeon map with multiple rooms

- Both demos use new entity.path_to() method
- Smooth interpolated movement animations
- Real-time pathfinding recalculation
- Comprehensive test coverage

These demos showcase the power of integrated pathfinding for game AI.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-09 13:07:33 -04:00