|
All checks were successful
Build / build (push) Successful in 1m21s
Implemented VoiceAudioSystem class that loads voice clips and plays them sequentially in response to game events (fuel/hull/ammo warnings). Changes: - VoiceAudioSystem: New class for managing voice audio - Loads 13 voice MP3 files (warning, danger, fuel, hull, ammo, etc.) - Priority queue system (HIGH, NORMAL, LOW) - Sequential playback with state polling - One-shot warning tracking to prevent spam - Non-spatial audio (cockpit computer voice) - Ship: Integrated VoiceAudioSystem - Initialize voice system after ShipAudio - Subscribe to ShipStatus.onStatusChanged events - Call update() in render loop for sequential playback Features: - Event-driven warnings trigger on status thresholds - Fuel/hull/ammo < 30%: "warning" → resource name - Fuel/hull/ammo < 10%: "danger" → resource name - Resource = 0: resource name → "empty" - Comprehensive debug logging for troubleshooting - State machine handles queue and playback sequencing Note: Current implementation has a bug in getMaxValue() calculation that prevents warnings from triggering correctly. Will be fixed in next commit. 🤖 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 | ||
| tsconfig.json | ||
| vite.config.ts | ||