space-game/src/core
Michael Mainguy 18a9ae9978 Refactor loading into 3-phase system to mask XR camera repositioning
Phase 1: Prefetch assets (ship.glb, asteroid.glb, base.glb, audio)
Phase 2: Create level meshes hidden (before XR entry)
Phase 3: Enter XR, init physics, show meshes, unlock audio

Key changes:
- Split Ship.initialize() into addToScene() + initializePhysics()
- Split RockFactory.createRock() into createRockMesh() + initPhysics()
- Split StarBase.buildStarBase() into addToScene() + initializePhysics()
- Add deserializeMeshes() + initializePhysics() to LevelDeserializer
- Update Level1 to orchestrate new phased flow
- Fix XR camera parenting (use getTransformNodeByName not getMeshById)
- Fix asteroid visibility (show meshes before clearing _createdRocks map)
- Add audioPrefetch utility for prefetching audio files

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-02 12:43:24 -06:00
..
handlers Refactor loading into 3-phase system to mask XR camera repositioning 2025-12-02 12:43:24 -06:00
appInitializer.ts Replace debugLog and console.* with loglevel logger 2025-11-29 05:24:18 -06:00
cleanup.ts Replace debugLog and console.* with loglevel logger 2025-11-29 05:24:18 -06:00
defaultScene.ts Refactor main.ts: extract handlers and remove dead code 2025-11-29 04:26:48 -06:00
gameConfig.ts Pre-position XR camera at cockpit before VR entry 2025-11-29 14:46:13 -06:00
logger.ts Performance fixes and debug features 2025-11-29 07:58:15 -06:00
sceneSetup.ts Performance fixes and debug features 2025-11-29 07:58:15 -06:00
xrSetup.ts Refactor loading into 3-phase system to mask XR camera repositioning 2025-12-02 12:43:24 -06:00