Skip to content

Samples ​

Every sample below is simultaneously a browser demo and a headless regression test. They are the intended copy-and-modify starting points: pick the one closest to what you are building and change it. None of this needs a clone of the engine repository.

  • Play every sample in the browser at molen.dev/play, with nothing to install.
  • Copy one into your own npm project. The smaller samples ship inside @bendyline/molen-tooling as templates, locked to the package versions released with that CLI:
sh
npx @bendyline/molen-tooling templates                    # list them
npx @bendyline/molen-tooling new my-game --template skybound
cd my-game && npm install && npm run dev

Start here ​

Small, complete, and meant to be copied. Each one is under a few hundred lines.

Cubes ​

The smallest complete experience: ~50 drifting cubes, one command, one determinism test.

Cubes

Play it · copy it with --template cubes

Scene manifest · Worker + client mount · Commands · Determinism test

Data visualization ​

One entity per data row, plus a scripted camera track and a render test.

Data visualization

Play it · copy it with --template data-viz

Data-driven entities · Camera tracks · Render tests

Top-down arena ​

A complete small game as pure data — no setup module at all.

Top-down arena

Play it · copy it with --template top-down-arena

Scene-data scripts · Input bindings · Kinematics · Typed project registry

Capability demos ​

One capability package at a time, isolated so you can see exactly what it contributes.

Terrain flyover ​

Chunked LOD terrain from a descriptor and a deterministic 16-bit heightmap.

Terrain flyover

Play it · copy it with --template terrain-flyover

Terrain descriptors · Chunked LOD meshing · Heightfield queries

Every figure preset, a body-type sweep, a socketed hat and a rider on a horse.

Figures gallery

Play it · copy it with --template figures-gallery

Figure descriptors · Canonical rigs · Sockets & attachments · Deterministic gaits

Earth view ​

The whole real-world view in one mountEarthView call.

Play it · play and read only (carries content)

Earth view facade · Orbit / walk / drive · World markers · Worker entries

World explorer ​

Streamed Web Mercator terrain, real Earth data, and procedurally styled buildings.

Play it · play and read only (carries content)

Tile streaming · Earth projection · Worldgen style packs · Adaptive performance · Weather-driven soundscape

Complete games ​

Full win/loss/restart loops with headless victory regressions and real-browser gameplay tests. The closest thing to a production experience.

City Courier ​

Arcade driving: traffic, five deliveries, damage, a time limit and restart.

City Courier

Play it · copy it with --template city-courier

Vehicles & driving · Ambient traffic · Follow cameras · Win/loss/restart loop · Victory regression · Sound from scene data

The Lantern Vault ​

First-person exploration: melee, inventory, a locked gate and a victory condition.

The Lantern Vault

Play it · play and read only (carries content)

First-person control · Inventory & gating · glTF asset pipeline · Asset verification

Skybound ​

Side-scrolling platformer: one-way ledges, stomps, hazards and checkpoints.

Skybound

Play it · copy it with --template skybound

Platformer physics · Jump feel (coyote/buffer) · Checkpoints · Hazards

Start from nothing instead ​

molen new <name> without --template scaffolds a runnable experience — project manifest, scene with camera/input/commands, scripts, a setup module, assertions and a Vite app — already wired into the agent loop.

sh
npx @bendyline/molen-tooling new my-experience

37 guides · 36 schema formats · 41 API entry points · 10 samples. API, CLI and schema pages are generated from the shipped build.