Skip to content

Examples gallery

Every example is a real, standalone project under the vgai monorepo’s examples/<id>/ — its own vgai.game.json, package.json, and vite.config.ts, not bundled inside a scaffolded project. Get one’s source to read or build on: npx @vgai/cli@latest create <name> --example <id> makes a correctly-rewritten standalone copy. Each is a GameAdapter you can open in the editor and play.

The third-person example running
Examples run with the real engine in play mode (third-person shown).
ExampleWhat it showsLesson
defaultA fresh scaffold’s own starter scene — camera, lights, ground plane
third-personKCC movement, orbit cam, XState-driven idle/walk/run blend, pushables, enemiesThird-person capstone
fpsPointer lock, throwable balls, dynamic physicsFPS capstone
vehicleRaycast vehicle: suspension, steering, ramps, obstaclesVehicle capstone
rtsIsometric camera, box selection, navmesh crowdRTS capstone
editor-tutorialAll-systems showcase (meshes, materials, lights, physics, particles, audio, bloom, debug draw)Editor: first scene
third-person-arenaServer-authoritative tag with AI bots + game phases, ships its own Colyseus server/ (arena_room); the in-round arena scene is a game-internal scene switch within this same project, not a separate exampleMultiplayer
ikSkeletal CCD inverse kinematics armIK capstone
learn-triggersSensor zone: a kinematic Mover crossing an onTriggerEnter/onTriggerExit sensorTriggers quick-start
learn-jointsRevolute physics joint: a fixed pivot + dynamic arm swinging as a pendulumJoints quick-start
learn-splinesA scene spline rendered as a path with a marker riding the CatmullRom curveSplines quick-start
learn-matfilesShared material: three shapes reference one polished-gold .mat.json via materialRefMaterial files quick-start
hp-hudReact state bridge: a Health component ticks HP down; the HUD re-renders via useGameState (zero polling) and shows a shell state through the death→respawn gapReact HUD
littlest-tokyoGLTF diorama: runtime-loaded animated model with tilt-shift/bloom/vignette postprocessingGLTF quick-start
feature-scenesScene-only showcase project: mounts instanced-grid, plus five more editor-openable technique scenes (ocean, terrain, water-shader, learn-skybox, particles) not mounted at runtimeInstancing/terrain/shader quick-starts
starfighterVisual-quality flying showcase: procedural ship + photoscanned-asteroid instancing + ACES/bloom grade, all scene-authored
tri-worldAn abstract clock composed from Three.js point geometry, a PixiJS dial, and semantic React annotations reading shared state

arena_room marks the multiplayer example backed by a Colyseus room.

Ingested (unmodified) — real upstream games, zero source diff

Section titled “Ingested (unmodified) — real upstream games, zero source diff”

These are not vgai reimplementations. Each is a real, third-party three.js game vendored byte-for-byte from upstream and run through vgai’s ingest adapter — the marquee proof that vgai loads existing games unmodified. See Loading Existing Games and Ingest a game.

Ingested gameUpstreamWhat it proves
racing-gamepmndrs/racing-game (R3F, MIT)marquee ingest — a full R3F racer, unaltered
simcitydgreenheck/simcity-threejs-clonea structurally different single-player game
tankscolyseus/realtime-tanks-demoa server-authoritative multiplayer client, unaltered

And three real PixiJS games run unmodified via the world2d ingest adapter (the 2D counterpart) — verified byte-for-byte against upstream:

Ingested PixiJS gameUpstreamWhat it proves
bubbo-bubbopixijs/open-games (MIT)a real PixiJS game, in-realm capture + edit
puzzling-potionspixijs/open-games (MIT)PixiJS v8 + Spine, unaltered
flappy-pixialiexme/flappy-pixi (MIT)PixiJS v6 via version-skew capture

And one real native-React DOM game runs unmodified via the react ingest route — no canvas, no renderer: the game’s component tree mounts as a DOM layer, deduped onto the host React 19:

Ingested React gameUpstreamWhat it proves
react-rpgASteinheiser/react-rpg.com (MIT)a native-React dungeon crawler, embed-only by design