How oliverromhagen/vrigstad-joyride works
Vrigstad Joyride is a browser open-world driving game, accompanied by an interactive 3D map of the same village. Players explore on foot or in cars, evade police, and use the kiosk and scrapyard/garage for money, purchases, repairs, tuning, and paint; the README documents these gameplay capabilities, but sampled game wiring is incomplete. The map constructs roads, buildings, water, and streetscape from shared world data. Edges are limited to calls visible in excerpts, indexed references, or documented page entry points; unsampled gameplay links are omitted rather than inferred.
Main entry points: map/main.ts Map runtime · roads.ts Road network · game/main.ts Game runtime · streetscape.ts Street layout
Components 22
Game runtime
- Game runtime
src/game/main.ts - Game settings
src/game/settings.svelte.ts - Ground texture
src/game/render/ground-texture.ts - Game commands
src/game/commands.ts
World model
- Village data model
src/world/data.ts - Elevation field
src/world/heightfield.ts - Road network
src/world/roads.ts - Building index
src/world/buildings.ts - Street classification
src/world/streetscape-rules.ts - Street layout
src/world/streetscape.ts - Furniture definitions
src/world/furniture/definitions.ts - Furniture placement
src/world/furniture/placement.ts - Vegetation renderer
src/world/mesh/vegetation-renderer.ts - Tree models
src/world/mesh/tree-models.ts - Seeded randomness
src/world/random.ts - Polygon geometry
src/world/polygon.ts
Interactive map
- Map runtime
src/map/main.ts
Economy and garage
- Wallet and economy
src/game/economy.ts - Garage choices
src/game/garage.ts - Garage HUD
src/game/garage-hud.ts - Scrapyard business
src/game/skroten.ts
Other components
- Player
Connections 21
- Player → Game runtime: plays
README.md - Player → Map runtime: opens map
README.md - Game runtime → Game settings: configures
src/game/main.ts - Game runtime → Ground texture: creates
src/game/main.ts - Garage HUD → Garage choices: draws
src/game/garage-hud.ts - Garage choices → Wallet and economy: formats prices
src/game/garage.ts - Garage choices → Scrapyard business: queries services
src/game/garage.ts - Map runtime → Road network: creates
src/map/main.ts - Map runtime → Building index: creates
src/map/main.ts - Map runtime → Street classification: classifies
src/map/main.ts - Map runtime → Street layout: builds
src/map/main.ts - Road network → Elevation field: samples elevation
src/world/roads.ts - Road network → Village data model: reads
src/world/roads.ts - Elevation field → Village data model: reads
src/world/heightfield.ts - Building index → Village data model: reads
src/world/buildings.ts - Street layout → Road network: uses road geometry
src/world/streetscape.ts - Street classification → Road network: classifies roads
src/world/streetscape-rules.ts - Furniture placement → Furniture definitions: uses definitions
src/world/furniture/placement.ts - Vegetation renderer → Tree models: uses models
src/world/mesh/vegetation-renderer.ts - Tree models → Seeded randomness: uses seeded choices
src/world/mesh/tree-models.ts - Street layout → Polygon geometry: measures segments
src/world/streetscape.ts