How evel7/game works
ENDLESS DRIFT is a browser-based 3D driving game with an optional online service. The player selects a car, map and mode, then drives through generated tracks or open-field arenas; the game simulates vehicle physics, renders the world and records results and progression. Online play adds matchmaking, rooms, shared vehicle state, accounts, ratings and leaderboards. The graph preserves README capabilities and indexed core modules. Several client connections are inferred from the main-module role, so those edges are dashed; sampled excerpts do not expose their call sites.
Main entry points: main.js Game orchestration · maps.js Maps and scenery · index.js Room server · track.js Procedural tracks
Components 18
Game runtime
- Game orchestration
src/main.js - Input handling
src/input.js - Audio and effects
src/audio.js - Visual effects
src/fx.js
World and vehicles
- Vehicle physics
src/vehicle.js - Car specifications
src/cars.js - Car models
src/carmodel.js - Procedural tracks
src/track.js - Maps and scenery
src/maps.js - Open-field arenas
src/field.js - Racing opponents
src/ai.js
Online service
- Cloud API client
src/api.js - Match networking
src/net.js - Room server
server/index.js - Accounts and rankings
server/accounts.js
Player data
- Progress and tuning
src/progress.js - Server data store
server/store.js
Other components
- Player
Connections 21
- Player → Game orchestration: plays
README.md - Game orchestration → Input handling: reads input
src/main.js - Game orchestration → Vehicle physics: simulates
src/main.js - Game orchestration → Car specifications: selects cars
src/main.js - Game orchestration → Car models: renders cars
src/main.js - Game orchestration → Procedural tracks: builds tracks
src/main.js - Game orchestration → Maps and scenery: uses maps
src/main.js - Game orchestration → Open-field arenas: builds arenas
src/main.js - Game orchestration → Racing opponents: runs opponents
src/main.js - Game orchestration → Audio and effects: plays audio
src/main.js - Game orchestration → Visual effects: renders effects
src/main.js - Game orchestration → Progress and tuning: updates progress
src/main.js - Game orchestration → Match networking: syncs races
src/main.js - Game orchestration → Cloud API client: requests cloud data
src/main.js - Procedural tracks → Maps and scenery: builds props
src/track.js - Maps and scenery → Open-field arenas: uses vegetation
src/maps.js - Progress and tuning → Vehicle physics: simulates tuning
src/progress.js - Cloud API client → Room server: sends requests
- Match networking → Room server: exchanges race state
- Room server → Accounts and rankings: uses accounts
server/index.js - Accounts and rankings → Server data store: reads and writes
server/accounts.js