This section lists primary exports for each runtime module. File paths are under src/runtime/.
For detailed API documentation, see the module-specific pages:
- Engine & Config (
engine.js): Core loop, configuration, and app instance. - Component System (
component.js): Base class and registries for logic and archetypes. - Asset Loading (
assetLoader.js): GLTF loading, scene composition, and budgeting. - Input (
input.js): Composite input handling (Keyboard, Gamepad, Touch). - Physics (
physics.js): Ammo.js integration, colliders, and raycasting. - Rendering (
renderer.js): Three.js wrapper and retro post-processing. - UI System (
uiSystem.js): HTML overlay management. - Audio (
audioSystem.js): Simple audio playback with voice limits. - Scene (
scene.js): Scene-scoped configuration (lighting, skybox). - Event System (
eventSystem.js): Pub/Sub messaging and game loop phases. - Pooling (
pool.js): Object pooling and prewarming.
export class Agent extends Component- AI/agent behavior component (ticks per frame).
export class CharacterController- Movement + ground checks; integrates with physics.
export const Debug: Dev flags, HUD elements, CLI controls.export class BudgetTracker: Tracks triangles, particles, UI tiles, RAM.
saveLocal(key, data),loadLocal(key, fallback)downloadJSON(filename, data)- Utilities for saving/loading state.
- Default loading screen implementation.
export class NavMesh extends Component- Navmesh ingestion and queries.
export class NetworkSystem/MultisynqNetworkSystem- Multiplayer state replication and remote player management.
export class ParticleSystem- Particle emitters/effects with per-frame budgeting.
export class Projectile extends Component- Simple projectile logic.
export class Raycaster extends Component- Recurring raycast queries (e.g., for sensors).
export class Rigidbody extends Component- Component wrapper for
PhysicsWorldbodies.
export function createSkybox(camera, options)- Procedural gradient skybox helper.
- Components for tracking and displaying values (health, mana, etc.).
export class Volume extends Component- Trigger volumes (Enter/Exit/Stay events).