mirror of
https://github.com/cliffe/BreakEscape.git
synced 2026-02-21 19:28:03 +00:00
- Added automatic collision avoidance for NPCs when colliding with each other and the player. - Updated `setupNPCToNPCCollisions()` to include collision callbacks for NPC-to-NPC interactions. - Created `handleNPCCollision()` to manage NPC-to-NPC collision responses, moving NPCs 5px northeast and recalculating paths. - Implemented `handleNPCPlayerCollision()` for NPC-to-Player collisions, ensuring consistent behavior with NPC-to-NPC avoidance. - Modified `updatePatrol()` to check for path recalculation after collisions. - Enhanced console logging for collision events and path recalculations. - Created comprehensive documentation covering implementation details, quick reference, and testing procedures. - Ensured minimal performance impact with efficient pathfinding and collision detection.