Skip to content

Top-down arena ​

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

Top-down arena

The reference for how far scene data alone can take you. scene.json declares kinematics, the move command, WASD input binding, and four sandboxed scripts (control, spawner, chaser, combat). There is no setup.mjs: an agent can produce this entire game by writing JSON, which is the engine's central design bet.

Play it ​

Play Top-down arena in your browser. Nothing to install.

Make it yours ​

The sample ships inside @bendyline/molen-tooling as a template, locked to the engine version you install. Copy it into a standalone npm project (no clone of the engine repository needed):

sh
npx @bendyline/molen-tooling new my-top-down-arena --template top-down-arena
cd my-top-down-arena
npm install
npm run dev

The copy keeps the sample's scene, scripts, commands, checks and headless tests, plus its replay fixture; npm test runs them.

What it teaches ​

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

The scene at a glance ​

Read straight out of the sample's scene.json:

Formatmolen/scene@3
Tick rate30 Hz
Entities6
Prefabs0
Scene scriptscontrol, spawner, chase, combat
Commandsmove
Declarescamera, input, physics

Run it headlessly ​

Every sample is also a headless fixture, so no browser is needed. From your copy:

sh
npx molen validate scene.json
npx molen sim run scene.json --ticks 60 --hash
npx molen shot scene.json --ticks 60 --out top-down-arena.png

Source ​

examples/top-down-arena. A walkthrough README ships alongside it and in every copy.

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