7 Commits

Author SHA1 Message Date
Pierre Wessman
ca6a444dec Add physics-based player detection with field-of-view filtering
Replace distance-based opponent detection with physics sensors and
angle filtering for more realistic spatial awareness. Players now
detect nearby opponents/teammates through Phaser overlap zones with
180° forward field-of-view.

Key changes:
- Add detection sensor to Player with physics overlap tracking
- Add NEAR_PLAYER_DETECTION_ANGLE constant for FOV filtering
- Refactor PuckCarrierBehavior to use physics-based detection
- Add debug visualization showing detection arc (wedge shape)
- Fix TypeScript unused variable errors for production build

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-03 14:03:26 +02:00
Pierre Wessman
2e2f065838 Implement skill-based puck reception with speed penalty mechanics
- Add handling attribute to PlayerAttributes (0-100 skill rating)
- Add puck reception constants: base chance, speed thresholds, check interval
- Replace instant pickup with skill-based reception probability calculation
- Reception chance factors: handling skill and puck speed
- Slow pucks (< 5 m/s) easy to receive, fast pucks (> 20 m/s) very difficult
- Add reception cooldown (100ms) to prevent spammy attempts
- Add comprehensive logging for reception success/failure with stats
- Adjust shooting logic: check shots before evasion, prevent behind-goal shots
- Add close-range shooting (≤3m) with wider angle threshold (120° vs 60°)
- Update Claude settings to simplified permission patterns

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-02 14:25:40 +02:00
Pierre Wessman
3a48483973 claude settings 2025-10-02 12:59:53 +02:00
Pierre Wessman
9e81619637 Implement defensive chase behavior and increase rotation speed
- Add defensive AI: players now chase puck carriers on opposing team
- Update DefensiveBehavior to check opponent possession and target puck position
- Increase player rotation speed from 3 to 10 rad/s for more responsive turning
- Update Claude settings permissions

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-02 10:20:00 +02:00
Pierre Wessman
d17d5c594b centralised types 2025-10-02 08:29:43 +02:00
Pierre Wessman
30d7d95ccc review 2025-10-02 08:22:33 +02:00
Pierre Wessman
40d07ee68c ... 2025-10-02 08:11:21 +02:00