← All use cases

Create browser-based games

Sketch a game plan, then let ZeroTwo build the game and playtest it in a live browser.

With ZeroTwo, move from a game brief to a clear plan and then a working browser game. Generate images for the art, and let ZeroTwo playtest it in a live browser while refining controls and UI.

Intermediate
Long-running

Best for

  • building a browser game from scratch with repeated testing.

Skills & Plugins

  • Playwright
    Plays the live build in a real browser to check controls and timing ($playwright). Desktop app only, because it needs a local Node runtime.
  • Image Generation
    Creates art, sprites, and UI assets ($imagegen).
  • Game Studio
    Skills for Phaser 2D and three.js games, sprite pipelines, and game-playtest for browser-game QA.

Starter prompt

With $playwright, $imagegen, and the Game Studio plugin, plan a browser game for this repo and build it. Follow PLAN.md as you implement, and keep a log of your work under `.logs/`.

Introduction

A game needs a concept, rendering, a frontend shell, backend state, assets, and visual tuning. Have ZeroTwo write the design down first, then iterate by playing the game in a browser with Playwright.

Start with the game plan

Turn on Plan mode (/plan-mode) to get a plan covering goal, main loop, controls, win and fail states, progression, visual direction, stack, and milestones. Plan mode keeps that turn read-only and ends with a plan you approve; then ask ZeroTwo to save it as PLAN.md. "Build a game" alone is too vague.

Guide ZeroTwo's behavior with AGENTS.md

Add an AGENTS.md naming the stack and rules: verify with builds and tests, follow PLAN.md, log decisions under .logs, check visuals with Playwright, and save image prompts under .prompts. ZeroTwo reads one instruction file from the project root, preferring ZEROTWO.md, then AGENTS.md, then CLAUDE.md. See custom instructions with AGENTS.md.

Tips:
- Use PLAN.md to guide new features
- Log work under .logs
- Save imagegen prompts in .prompts

Leverage skills

Install Playwright and Game Studio from Customize > Plugins; $imagegen is a built-in skill. Type $ in the composer to pick a skill by name. See Skills. Saved prompts keep assets stylistically consistent.

Let ZeroTwo work and iterate

The first version can take hours, especially with many assets, since ZeroTwo tests unattended. A more precise plan yields a better result; then refine using screenshots and feedback.

Suggested stack

Related use cases