Start with a concrete game idea and the controls, style, and scoring you want.
PlayWorks creator stack
AI game generator for playable browser games
Use the AI game generator to turn a concrete prompt into a playable HTML5 draft, then inspect the result against real browser-game examples before publishing.
Build loop
Move from idea to playable browser build without leaving the creator flow.
Describe the game you want and generate a playable draft.
Publish with leaderboard and reward settings when the build is ready.
Prompt starting point
Make a space shooter where the player moves with WASD, fires with space, dodges asteroids, collects fuel, survives wave timers, and earns bonus points for clean waves.
Generation starts with constraints
Game generation works best when the prompt gives the AI boundaries. A genre name alone is too open-ended. Add screen layout, input method, scoring, enemies or hazards, and the condition that ends the run.
- Name the camera and screen format: one-screen arcade, side-scroller, top-down, or fixed arena.
- Name the input: keyboard, mouse, touch, or simple buttons.
- Name the feedback: score, health, timer, combo, wave, level, or distance.
What to inspect in the generated draft
A first draft is useful when it can be played and judged. Creators should check whether the generated mechanics match the prompt, whether the score updates for understandable reasons, and whether the player can recover after losing.
- Controls should respond immediately and match the instructions.
- Hazards should be readable before they hit the player.
- The restart loop should be obvious after a failed run.
How to improve the second prompt
The second prompt should change one or two things, not rewrite the whole game. Use observations from the playable draft: movement too slow, enemies too dense, score unclear, HUD too small, or fail state missing.
- Good follow-up: Make the ship accelerate faster and show remaining health in the top left.
- Good follow-up: Reduce enemy spawn rate for the first 20 seconds, then ramp speed every wave.
- Avoid broad follow-ups like: Make it better, add more fun, or improve graphics.
Publish only after browser proof
The generator should lead to a public browser game that players can open, understand, and replay. Before publishing, test the draft in the browser, review the public title and description, and confirm the scoring behavior matches the page copy.
- Use examples like Moonlander or Nova Swarm as quality references.
- Check public-page copy before sharing.
- Use leaderboard and rewards only after the scoring loop is stable.
Tutorial steps
- Choose a narrow game format with one clear player action.
- Write a prompt that includes controls, hazards, scoring, fail state, and restart flow.
- Generate the playable draft and test it in the browser.
- Write a follow-up prompt from what you observed while playing.
- Prepare metadata, leaderboard settings, and publish controls after the game loop works.
Mechanics to include
- Ask for visible score changes tied to player skill.
- Include a fail state so the run has pressure.
- Keep the first version to one screen or one short level.
- Use readable HUD placement and controls instructions.
- Add reward or wallet details after gameplay is stable.
Common mistakes to avoid
- Prompting for multiple genres at once.
- Forgetting restart and game-over behavior.
- Requesting advanced visual polish before controls feel good.
- Changing too many mechanics in one follow-up prompt.
- Publishing without checking how the game page explains the run.
Playable proof
A published arcade lander with fuel pressure, soft-landing scoring, public play, and leaderboard-ready replay pressure.
A fast browser Snake example with simple controls, clear scoring, collision rules, and quick restart behavior.
A space shooter reference with waves, keyboard movement, projectile timing, seeded scoring, and Playworks SDK hooks.
A public action game example for creators who want to inspect browser controls, game-page copy, and leaderboard proof.
Next actions
Related tutorials
Walk through prompt writing, first-draft testing, refinement, and publishing preparation.
Review browser-first controls, game loops, public pages, and player expectations.
Prepare title, description, preview, validation, and release checks before publishing.
Related paths
Use the full creator workflow after generating a first draft.
Compare the broader maker workflow for publishing and rewards.
Start from a shooter-specific prompt and example.
Browse prompt-ready game shapes.
Play public examples before generating your own.
Connect score submission after generation.