|
Some checks failed
Build / build (push) Failing after 20s
Added real-time accuracy tracking by detecting projectile-asteroid collisions. **Modified: src/weaponSystem.ts** - Enable collision callbacks on projectile physics body - Add collision observable to each projectile in fire() method - Track when projectile collides with any object (asteroids) - Call gameStats.recordShotHit() on first collision - Prevent duplicate hit recording with hitRecorded flag - Clean up collision observer when projectile is disposed or hits target - Capture gameStats in closure for access in collision handler The Accuracy statistic now updates in real-time on the status screen, calculated as (hits / shots fired) * 100%. All 6 statistics now update in real-time: ✅ Game Time - Tracks from XR pose set ✅ Asteroids Destroyed - From score observable ✅ Hull Damage Taken - From ship status changes ✅ Shots Fired - From weapon fire() calls ✅ Accuracy - From projectile collisions ✅ Fuel Consumed - From physics thrust 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .github/workflows | ||
| docs | ||
| public | ||
| scripts | ||
| server | ||
| src | ||
| themes/default | ||
| .gitignore | ||
| CLAUDE.md | ||
| CONTROLLER_THRUST.md | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| styles.css | ||
| tsconfig.json | ||
| vite.config.ts | ||