A Unity-style game engine for three.js, made for coding agents.

Scenes in TSX, logic in Unity's behaviours, rendering in plain three.js. Your agent writes it from what it already knows, then plays the running game to check its work.

</> Source

Tap a letter, then drag its arrows.

Made with it. Play them here.

Each was written by Claude and tuned in the editor. Their source is in the repository's examples.

What you get.

Your agent can play the game it wrote.

In development the page has window.__scenoco. From Playwright or any browser tool, an agent holds the clock, steps exact frames, presses keys, clicks objects by class, reads state as data and outlines objects for a screenshot.

In one test with 10 planted bugs, Sonnet found all 10 from the code either way. With the bridge it confirmed all 10 in the running game; without it, 4.

No new engine to teach your model.

Behaviours are Unity's: awake, start, update, coroutines, prefabs, SceneManager. Everything on screen is three.js. There is no private vocabulary for a model to invent methods for.

Mistakes fail at the line that made them.

Scenes are TSX, so tsc reads them. A misspelled attribute, a wrong value type or a reference to the wrong class is an error before anything runs, and scenoco check says what to write instead.

The tenth change is as easy as the first.

A scene only declares; each piece of logic is a small behaviour on the node it moves. A change stays where it was made, and a person can open the project and take over.

Edit the running game; the code follows.

Press Edit on the game you're playing: pause, step, move things, change any setting of any behaviour. Save writes the change into the TSX it came from, everything else byte for byte.

Start on the web, continue in Unity.

scenoco-unity writes the game into a Unity project: prefabs, scenes, materials, particles, UI and input actions, with the code as C# stubs holding its TypeScript.

SceNoCo's editor open over a running game: the scene's nodes, and the selected one as live TSX

That's the whole model.

// A behaviour: Unity's lifecycle
export class Spinner extends Behaviour<Mesh> {
  speed = 1;

  update(dt: number) {
    this.node.rotation.y += this.speed * dt;
  }
}
// A scene: every tag is a class you import
export const Main = () => (
  <Scene>
    <PerspectiveCamera position={[0, 2, 5]} />
    <Mesh>
      <BoxGeometry />
      <MeshStandardMaterial color="orange" />
      <Spinner speed={2} />
    </Mesh>
  </Scene>
);

Start with one line.

npm create @scenoco-three my-game

The starter includes the rules card an agent reads first. Working in Claude Code? Install the skill. Any other agent: point it at llms.txt.

Questions

Is there a Unity-like game engine for three.js?

Yes. SceNoCo is a Unity-style game engine for three.js. It brings Unity's component model, hooks, coroutines, prefabs, physics components and named input axes to the web, and rendering stays plain three.js. You install it from npm as a library, rather than downloading an editor app.

Can I vibe code a 3D game with Claude, ChatGPT or Cursor?

Yes. Any AI coding agent that can edit files and drive a browser can write a SceNoCo game and test it. The starter ships a rules card the agent reads, and npm run check reports its mistakes at the line it wrote them.

How do I make a browser game with an LLM?

Run npm create @scenoco-three my-game and describe your game to your agent. It writes behaviours and TSX scenes, runs the check, then plays the game through window.__scenoco to confirm that it works.

Can an AI agent test the game it builds?

Yes. In development, the page exposes a bridge the agent reaches through Playwright or any browser tool. It can pause the clock, step frames, send input, click objects, wait for a condition, read game state and take screenshots. The same game runs in Vitest with simulate, without a browser.

Does the editor or the bridge end up in my release build?

No. Both exist in development only; a production build contains neither.

Can I port a three.js game to Unity?

A SceNoCo game can. scenoco-unity writes scenes, prefabs, meshes, materials, particles, UI and input into a Unity project. Game logic arrives as C# stubs holding the TypeScript, to be ported by you or an agent.

How is it different from React Three Fiber?

Scenes use React Three Fiber's attribute rules, but there's no React and no reconciler: TSX builds the objects once. Game logic lives in Unity-style behaviours instead of hooks and components.

Is it free?

Yes. SceNoCo is open source under the MIT licence.