space-game/src
Michael Mainguy d6b1744ce4
All checks were successful
Build / build (push) Successful in 1m41s
Add keyboard roll controls and fix XR camera parenting
Keyboard controls:
- Added Arrow Left/Right keys for ship roll control
- Updated controls documentation in index.html
- Complete keyboard scheme: WASD for movement/yaw, arrows for pitch/roll

XR camera fixes:
- Fixed camera not parenting to ship in VR mode
- Issue: entering XR early broke onInitialXRPoseSetObservable flow
- Solution: manually parent camera after level initialization if already in XR
- Also manually start game timer and physics recorder in this case
- Set XR camera Y position to 1.5 for better cockpit viewing height

TypeScript fixes:
- Use WebXRState.IN_XR enum instead of numeric value
- Change MaterialConfig.albedoColor from Color4Array to Vector3Array
- Remove alpha channel from color arrays (Color3 is RGB only)

Code improvements:
- Added debug logging for XR camera parenting
- Check XR state before manual camera setup
- Graceful handling when ship transformNode not found

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-09 07:02:26 -06:00
..
replay Refactor replay system to reuse Level1.initialize() and simplify UI 2025-11-08 19:20:36 -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 Add keyboard roll controls and fix XR camera parenting 2025-11-09 07:02:26 -06:00
level1.ts Add keyboard roll controls and fix XR camera parenting 2025-11-09 07:02:26 -06:00
level.ts changed game dynamics. 2025-02-17 16:51:06 -06:00
levelConfig.ts Add keyboard roll controls and fix XR camera parenting 2025-11-09 07:02:26 -06:00
levelDeserializer.ts Refactor replay system to reuse Level1.initialize() and simplify UI 2025-11-08 19:20:36 -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 Refactor replay system to reuse Level1.initialize() and simplify UI 2025-11-08 19:20:36 -06:00
levelSerializer.ts Add keyboard roll controls and fix XR camera parenting 2025-11-09 07:02:26 -06:00
main.ts Add keyboard roll controls and fix XR camera parenting 2025-11-09 07:02:26 -06:00
mirror.ts Initial Commit 2025-02-15 11:19:24 -06:00
physicsRecorder.ts Refactor replay system to reuse Level1.initialize() and simplify UI 2025-11-08 19:20:36 -06:00
physicsStorage.ts Refactor replay system to reuse Level1.initialize() and simplify UI 2025-11-08 19:20:36 -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 Add flat camera mode support and fix WebXR user activation 2025-11-09 06:30:59 -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 Add physics recorder system with ring buffer and IndexedDB storage 2025-11-08 05:22:49 -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 Fix null reference error in weapon system collision observer 2025-11-08 04:43:02 -06:00