Text to game AI

Text to game: type a description, play the game

Text to game means typing a description and getting a playable game back. On Gameable, a sentence or two is enough: an AI agent plans the game, writes and tests the code, and loads a 2D browser game into a live preview in a few minutes. You then change it by typing what you want different.

From prompt to game

What happens to the text you type

A prompt goes through the same steps every time.

  1. 01

    A design

    The agent turns your words into a plan: the game type, the rules, how you win and lose, and a list of what you asked for that it checks at the end.

  2. 02

    A look

    It picks a colour palette, fonts and a twist for the theme, so two games from similar prompts do not look alike. Anything you specified wins.

  3. 03

    The code

    It writes the game for the Phaser 3 framework, with sprites and sounds from a built-in library or art drawn in code.

  4. 04

    A test

    It starts the game in a real browser, plays it with test input, and repairs errors, freezes and broken menus before the game reaches you.

Writing the prompt

What to put in the text

Short prompts work. Detailed prompts work better, because exact words and numbers in your text are carried into the game as written.

  • Who you play as and where: a fox in a snowy forest.
  • What you do: jump between ledges, catch falling stars, answer questions.
  • What makes it hard: a timer, three lives, enemies that speed up.
  • Any exact text or numbers: the title, the questions, 60 seconds on the clock.

After the first version

Change the game with more text

The first build is a starting point. Type what you want different, such as a higher jump or a second level, and the agent edits the game and reloads it. A version is saved after every change, so you can go back.

If something was left for later or could only be approximated, the agent says so in its reply.

Example prompts

Prompts you can copy

Paste one of these into Gameable, or change the details to make it your own.

One sentence

“A game where a frog catches flies with its tongue before the pond freezes over.”

With rules and numbers

“A space shooter with three lives and waves of asteroids that get faster. A shield power-up every 20 seconds, and a boss after wave five that takes ten hits.”

With your own content

“A quiz called Kitchen Science with these five questions, four answers each and 15 seconds per question. Q1: What gas makes bread rise? A: Carbon dioxide (wrong: oxygen, helium, steam). Q2: ...”

Honest limits

What text can and cannot describe

The agent builds what a short description can pin down.

What text can and cannot describe
What you ask forHow it goesGood to know
A game type with a themeWorks well"A tower defense with garden gnomes and snails" is enough.
Exact titles, numbers and question listsWorks wellThey are used as written.
How the game should feelTakes a few roundsPlay it, then give specific notes such as "the jump is too floaty".
A long, multi-part designTakes a few roundsStart with the core game and add one feature per message.
A copy of an existing gameNot supportedDescribe your own characters and world. Gameable does not copy another game's name, characters or art.
3D games or online multiplayerNot supportedGameable makes single-player 2D browser games.

FAQ

Common questions

What is text to game AI?

It is a tool that builds a playable game from a typed description. You write what the game is, and the AI writes the code, adds art and sound, and gives you something you can play. Gameable does this for 2D browser games.

How long should the prompt be?

One or two sentences is enough to get a complete game. Add detail for anything you care about: exact numbers, names, rules and text in your prompt are carried into the game as written.

How long does text to game take?

A few minutes for a first playable version. Each later change you type takes about as long as a short chat reply.

Is text to game free?

Playing games in the Arcade is free and needs no account. Making games needs a free account, with no credit card, and uses free daily credits or a beta access code while Gameable is in beta. There are no paid plans yet.

Can I turn a prompt into a 3D game?

Not on Gameable, which makes 2D games only. 2D games with clear rules are the kind an AI agent can write and fully test from a text description today.

Written by the Gameable team. Last updated .

Read next

More about making games with AI

Your game is one sentence away

Describe it, play it a few minutes later, and share it with a link. No coding and nothing to install.