Go to file
Michael Mainguy e9ddf91b85
All checks were successful
Build / build (push) Successful in 1m33s
Implement trigger-based mission brief dismissal for VR gameplay
Add mission briefing system that displays when entering VR and requires
trigger pull to dismiss before gameplay begins. This prevents accidental
weapon firing and provides clear mission objectives to players.

## Key Features
- Mission brief displays on VR entry with objectives from directory.json
- Ship controls disabled during briefing (movement, rotation, weapons)
- Either controller trigger dismisses brief and starts game timer
- First trigger pull does not fire weapons, only dismisses briefing
- Subsequent trigger pulls fire weapons normally

## Implementation Details
- Added MissionBrief class with mesh-based UI parented to ship
- Ship class gains disableControls()/enableControls() methods
- New mission brief trigger observable bypasses normal shoot handling
- ControllerInput modified to allow triggers through when disabled
- Level1 orchestrates control flow: disable → show brief → enable
- Game timer and physics recording start only after dismissal

## Technical Changes
- controllerInput.ts: Allow trigger events when controls disabled
- ship.ts: Add control state tracking and mission brief observable
- level1.ts: Integrate mission brief into XR initialization flow
- missionBrief.ts: New class for displaying briefing with trigger detection
- Fixed property name mismatch in level selection event dispatch
- Added cache-busting for dev mode level loading
- Exposed LevelRegistry to window for debugging

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-21 07:44:46 -06:00
.github/workflows increased heap space. 2025-10-28 12:01:29 -05:00
docs Add Blender export tooling and refactor asset structure 2025-11-06 12:25:34 -06:00
public Add New Relic browser monitoring and update base station model 2025-11-12 11:11:00 -06:00
scripts Implement hybrid level storage system with JSON-based defaults and configurable orbit constraints 2025-11-11 18:40:01 -06:00
server Initial Commit 2025-02-15 11:19:24 -06:00
src Implement trigger-based mission brief dismissal for VR gameplay 2025-11-21 07:44:46 -06:00
themes/default Add New Relic browser monitoring and update base station model 2025-11-12 11:11:00 -06:00
.gitignore Initial Commit 2025-02-15 11:19:24 -06:00
ANALYTICS_IMPLEMENTATION.md Add analytics abstraction layer with intelligent batching 2025-11-12 16:22:28 -06:00
CLAUDE.md Refactor asteroid scaling and reorganize assets 2025-11-10 12:19:31 -06:00
CONTROLLER_THRUST.md Refactor ship controls to force-based physics with world-space transformations 2025-10-31 11:20:31 -05:00
index.html Fix mesh rendering and CloudFlare proxy compatibility 2025-11-11 06:13:48 -06:00
package-lock.json Add New Relic browser monitoring and update base station model 2025-11-12 11:11:00 -06:00
package.json Add New Relic browser monitoring and update base station model 2025-11-12 11:11:00 -06:00
tsconfig.json Initial Commit 2025-02-15 11:19:24 -06:00
vite.config.ts Fix mesh rendering and CloudFlare proxy compatibility 2025-11-11 06:13:48 -06:00