2.6 KiB
2.6 KiB
Implemented Features
This document lists features that are implemented in the current codebase.
Scene
- Fullscreen React Three Fiber scene
- Main map scene loaded from
public/map.jsonand matchingpublic/models/{name}/model.glbormodel.gltfassets - Debug physics test scene selectable from the debug panel
- Rapier physics context available for production stage gameplay objects
- Ambient and directional lighting
- Environment background setup
Player
- Player camera mode
- Pointer lock mouse look
- Movement with
ZQSD - Jumping
- Octree-based collision against the loaded map
Interactions
- Focus detection by distance and raycast
- Trigger interactions activated with
E - Grab interactions activated with the primary mouse button
- Physics-backed gameplay objects can be mounted inside stage content without replacing player octree collision
- Interaction prompt shown for trigger interactions
Repair Gameplay
- Reusable production
RepairGamemounted forbike,pylone, andfermemission states - Repair mission config shared through
src/data/gameplay/repairMissions.ts - Repair-game flow supports
waiting -> inspected -> fragmented -> scanning -> repairingwith.webmprompts, repair case spawn,E, two-fists hold input, exploded model transition, and scan visuals
Audio
- One-shot sound playback for trigger interactions
- Simple per-sound pooling through
AudioManager
Debug Tooling
?debugquery param enables the debug panellil-guicontrols for camera mode, scene mode,R3F Perf,Debug Overlay, and interaction tuning- Compact debug overlay for game state controls and hand tracking status
- Debug scene helpers
- Free debug camera
r3f-perfoverlay
Map Editor
/editorroute for inspecting and editingpublic/map.json- Automatic loading of
public/map.jsonwhen available - Folder upload fallback when
map.jsonis missing - Rendering of available
public/models/{name}/model.glbormodel.gltfassets - Fallback cubes for nodes whose model is missing
- Object selection by click
- Transform modes for translate, rotate, and scale
- Keyboard shortcuts for
T,R,S,Esc, undo, and redo - Player-style navigation mode with
WASD,ZQSD, arrow keys,Space, andShift - JSON export for downloading the edited map
- Dev-server save endpoint for writing changes back to
public/map.json
Not Implemented Yet
- complete mission system
- zone system
- cinematic system
- dialogue system
- loading flow
- minimap and mission HUD
- full production separation between gameplay and debug scenes
- production backend persistence for editor saves