space-game/src
Michael Mainguy 688d002752
Some checks failed
Build / build (push) Failing after 19s
Step 5: Track fuel consumed
Added real-time tracking of fuel consumption from linear and angular thrust.

**Modified: src/shipPhysics.ts**
- Added GameStats import and _gameStats property
- Added setGameStats() method to receive GameStats instance
- Call gameStats.recordFuelConsumed() after each fuel consumption
- Tracks both linear thrust (forward/backward) and angular thrust (rotation)
- Records exact consumption amounts (0.005 max per frame for each)

**Modified: src/ship.ts**
- Wire up physics system with GameStats via setGameStats()
- Called immediately after physics initialization

The Fuel Consumed statistic now updates in real-time on the status screen, accumulating all fuel used for movement and rotation, displayed as a percentage.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-08 04:00:23 -06:00
..
utils Fix level double initialization and refactor ship physics 2025-11-07 11:16:50 -06:00
backgroundStars.ts Add centralized debug logging system with settings UI control 2025-10-31 14:44:09 -05:00
controllerDebug.ts Add local controller profiles and disable online repository 2025-11-07 11:31:13 -06:00
controllerInput.ts Add status screen with game statistics display 2025-11-07 15:46:58 -06:00
createPlanets.ts Refactor Ship class into modular components 2025-11-07 12:48:17 -06:00
createSun.ts Adjust lighting, physics, and visual settings for improved gameplay 2025-10-28 13:19:01 -05:00
debug.ts Add centralized debug logging system with settings UI control 2025-10-31 14:44:09 -05:00
defaultScene.ts changed game dynamics. 2025-02-17 16:51:06 -06:00
demo.ts changed game dynamics. 2025-02-17 16:51:06 -06:00
explosionManager.ts Add centralized debug logging system with settings UI control 2025-10-31 14:44:09 -05:00
gameConfig.ts Make ship physics constants configurable via GameConfig with UI 2025-11-07 13:05:27 -06:00
gameStats.ts Add status screen with game statistics display 2025-11-07 15:46:58 -06:00
keyboardInput.ts Fix inspector 'i' key registration in KeyboardInput 2025-11-07 13:07:15 -06:00
level1.ts Step 1: Implement game timer tracking 2025-11-08 03:53:07 -06:00
level.ts changed game dynamics. 2025-02-17 16:51:06 -06:00
levelConfig.ts Add Blender export tooling and refactor asset structure 2025-11-06 12:25:34 -06:00
levelDeserializer.ts Add resupply system for base landing zone 2025-11-07 15:39:40 -06:00
levelEditor.ts Add Blender export tooling and refactor asset structure 2025-11-06 12:25:34 -06:00
levelGenerator.ts Add Blender export tooling and refactor asset structure 2025-11-06 12:25:34 -06:00
levelSelector.ts Add centralized debug logging system with settings UI control 2025-10-31 14:44:09 -05:00
levelSerializer.ts Add centralized debug logging system with settings UI control 2025-10-31 14:44:09 -05:00
main.ts Fix inspector 'i' key registration in KeyboardInput 2025-11-07 13:07:15 -06:00
mirror.ts Initial Commit 2025-02-15 11:19:24 -06:00
planetTextures.ts Optimize WebXR performance and add procedural planet generation 2025-10-28 11:50:18 -05:00
radar.ts Started cleaning up audio, rendering artifacts. 2025-02-16 16:44:18 -06:00
rockFactory.ts Fix level double initialization and refactor ship physics 2025-11-07 11:16:50 -06:00
router.ts Add JSON-based level editor with localStorage persistence 2025-10-29 08:24:55 -05:00
scoreboard.ts Add ShipStatus system with automatic gauge updates and fuel consumption 2025-11-07 15:17:49 -06:00
scoreEvent.ts Initial Commit 2025-02-15 11:19:24 -06:00
setLoadingMessage.ts Migrate to AudioEngineV2 and fix Meta Quest 2 controller detection 2025-10-17 13:59:48 -05:00
settingsScreen.ts Make ship physics constants configurable via GameConfig with UI 2025-11-07 13:05:27 -06:00
ship.ts Step 5: Track fuel consumed 2025-11-08 04:00:23 -06:00
shipAudio.ts Refactor Ship class into modular components 2025-11-07 12:48:17 -06:00
shipEngine.ts Add background starfield and fix scene background color 2025-10-30 09:37:30 -05:00
shipPhysics.ts Step 5: Track fuel consumed 2025-11-08 04:00:23 -06:00
shipStatus.ts Add ShipStatus system with automatic gauge updates and fuel consumption 2025-11-07 15:17:49 -06:00
sight.ts Refactor scoreboard to use GLB mesh and improve ship mechanics 2025-11-04 13:41:17 -06:00
sphereLightmap.ts Add controls information and fix TypeScript build errors 2025-10-30 12:25:01 -05:00
starBase.ts Add resupply system for base landing zone 2025-11-07 15:39:40 -06:00
statusScreen.ts Fix status screen to follow camera using parenting 2025-11-08 03:47:50 -06:00
testLevel.ts Add centralized debug logging system with settings UI control 2025-10-31 14:44:09 -05:00
vite-env.d.ts Initial Commit 2025-02-15 11:19:24 -06:00
weaponSystem.ts Step 4: Track shots fired 2025-11-08 03:59:06 -06:00