ydy0615 e84aa30202 feat: refine map update logic and add side‑aware path helpers
- Decrease `GameMap` update interval from 10 ms to 1 ms and lower `update_threshold` to 1 for more responsive state syncing.
- Remove unused `random` import.
- Adjust safe‑zone detection to offset player position based on team side.
- Restrict enemy marking to opponent side, preventing incorrect obstacle placement.
- Update edge generation logic to correctly handle safe‑zone and opponent cells.
- Add `closest` and `closest_in_range` helper methods that compute nearest positions while respecting team side boundaries.
- Introduce global `my_side_is_left` handling within `Map.update` for side‑dependent calculations.

These changes improve map accuracy, AI pathfinding, and overall game performance.
2025-12-28 09:48:31 +08:00
2025-12-27 07:24:28 +00:00
2025-12-27 07:24:28 +00:00
Description
No description provided
Readme MIT 2.7 MiB
Languages
JavaScript 95.9%
Jupyter Notebook 2.7%
Python 1.4%