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> |
||
|---|---|---|
| .. | ||
| handlers | ||
| appInitializer.ts | ||
| cleanup.ts | ||
| defaultScene.ts | ||
| gameConfig.ts | ||
| logger.ts | ||
| sceneSetup.ts | ||
| xrSetup.ts | ||