- Update isInGoal() to check actual goal area boundaries (goalXOffset ± goalDepth)
- Update handleGoal() to use consistent goal area coordinates
- Add continuous goal checking in puck update loop
- Add goal post collision detection to prevent entry from sides/behind
- Goals now only register when puck enters light red areas from the front
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Fix save calculation to use original shot velocity before collision
- Add console logging for successful/failed saves
- Enhance goalie save logic with proper difficulty scaling
- Maintain collision physics while preserving save accuracy
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add size parameter to drawHitEffect() with proportional inner/outer radii
- Reduce hit effect duration from 500ms to 200ms for faster animation
- Change hit effect color to semi-transparent black and reduce size to 10
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Away team Left Defender and Left Winger were incorrectly positioned on the right side due to formation logic not accounting for team orientation. Away team faces opposite direction, so their left/right perspective is flipped.
- Fix initial positioning in game-engine.js setupPlayers()
- Update formation logic in player.js for all positioning methods:
- getOffensiveSupportPosition()
- getContextualPosition()
- getFaceoffPosition()
- Away team left positions now use positive Y (bottom), right positions use negative Y (top)
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Wingers now push forward past attack zone (+40 units) when team has possession to create passing options
- Added findTeammateCloserToGoal() method to prioritize passes to teammates in better scoring positions
- Puck handlers now pass to teammates closer to goal with 70% probability
- Enhanced team coordination and more realistic offensive positioning
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Make goalXOffset a renderer property and use it consistently across:
- goal rendering with lines and depth
- goalie positioning in game engine
- goalie AI behavior in player updates
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>