# How to write an AI game prompt (with 5 examples)

> How to write an AI game prompt in 2026: a 5-part template, example prompts for Roblox, Minecraft, Unity and browser games, and how to fix a failed build.

Source: https://synagy.org/blog/ai-game-prompt
Published: 2026-11-22
By: the Synagy team (https://synagy.org)

**Short answer:** a good AI game prompt names 5 things: what the player does, how they win, how they lose, the controls and the look. Ask for one core mechanic first, then change one thing per follow-up prompt. Roblox's own [Assistant prompt guide](https://create.roblox.com/docs/assistant/prompt-engineering) says the same: if a result fails, add more details and try again. Below are 5 example prompts for browser games, Roblox, Minecraft and Unity.

We make Synagy, an AI game builder, so we are not neutral. The advice below works for any AI tool. Where it is specific to Synagy, we say so.

## Why do most AI game prompts fail?

Most prompts ask for too much and leave out the rules. "Make a fun RPG" gives the AI nothing to test. It has to guess the controls, the goal and how you lose. Every guess is a chance for a bug.

The engine makers give the same warning. Unity's [Assistant best practices](https://docs.unity3d.com/Packages/com.unity.ai.assistant@2.7/manual/best-practice/best-practice-assistant.html) say: "Break complex tasks into smaller steps instead of solving everything in a single prompt." They also say: "Start simple to get a working result."

The four mistakes we see most often:

- **The whole game in one prompt.** Menus, levels, shop and boss fight all at once.
- **Taste words instead of rules.** "Fun", "cool" or "better" mean nothing to a machine.
- **No way to lose.** Without a fail state, there is no game, only a scene.
- **Missing controls.** The AI picks keys you did not expect.

## What goes into a good AI game prompt?

A good game prompt answers five questions in plain words. Keep each answer to one short sentence.

**The 5-part game prompt**

1. **Action**: what the player does most: jump, collect, shoot, dodge
2. **Goal**: how the player wins or scores
3. **Fail**: how the player loses: lives, a timer, health
4. **Controls**: keys, mouse or touch
5. **Look**: one art style and one mood

Here is the difference between a weak and a strong answer for each part:

| Part | Weak | Strong |
|---|---|---|
| Action | "a platformer" | "the player jumps between floating islands" |
| Goal | "make it fun" | "reach the flag on island 10" |
| Fail | missing | "falling into the water costs 1 of 3 lives" |
| Controls | missing | "A and D to move, Space to jump" |
| Look | "cool graphics" | "bright toon style, blue sky" |

Use exact names. Roblox's guide says: "Use instance names exactly as they're spelled." If your game already has a part called RedDoor, write RedDoor, not "the door".

## 5 example prompts you can copy

Each example below fills all 5 parts. Change the theme and numbers to your own idea, but keep the structure.

**1. Browser game (collect and dodge)**

> A 2D game where a fox collects 20 acorns in a forest before a 60-second timer runs out. Arrow keys to move. Touching a wasp costs 1 of 3 lives. Pixel art, warm autumn colors. Show score, lives and time at the top.

**2. Roblox obby**

> An obby with 10 stages of floating platforms over lava. Each stage has a checkpoint. Touching lava sends the player back to the last checkpoint. Show the current stage number on screen. Bright colors.

**3. Roblox collecting game**

> Players walk around a meadow and pick up coins. 100 coins buy an egg that hatches a random pet. Pets follow their owner. Show the coin count in the top right corner.

**4. Minecraft mod**

> A sword called Frost Blade, crafted from 2 ice blocks and 1 stick. Hitting a mob slows it for 3 seconds. Light blue texture with a white edge.

**5. Unity scene**

> A flat ground plane with 5 coins on it. The player is a capsule that moves with WASD and jumps with Space. Each coin adds 1 to a score in the top left. When all 5 are collected, show "You win".

> **Tip:** the numbers in these prompts (20 acorns, 3 lives, 10 stages) are not decoration. They give the AI something exact to build and test against.

## How do you fix a game when the AI gets it wrong?

Change one thing per prompt, and describe what happens now and what should happen. Unity's guide suggests the order "Current state > Desired outcome > Technical details". For bugs, it asks for "The exact error message from the Console" and "Expected vs actual behavior".

1. **Play first.** Write down the single biggest problem.
2. **Say what you see.** "The player jumps, but only half a block high."
3. **Say what you want.** "The jump should clear the 2-block wall."
4. **Paste the exact error,** if there is one. Do not retype it from memory.
5. **Protect the rest.** End with "Keep everything else the same."

If it still fails, add detail, not length. Roblox's guide puts it simply: "making small tweaks and trying again can lead to better results." Our guide on [making a Roblox game with Claude](https://synagy.org/blog/make-a-roblox-game-with-claude) shows this loop with a coding agent.

## How does prompting work in Synagy, and where does it stop?

In Synagy you write the same kind of prompt, but you get help before anything is built. These features are live today:

- **A plan with a price.** Every build shows its plan and its price in credits before it starts. Read it: it is your prompt as the agents understood it. A part that fails costs nothing.
- **Assist.** A prompt helper opens from the bottom right corner of every Studio page. On the Build page it can hand you a ready prompt for the build field.
- **Voice.** You can speak your idea instead of typing it. On the Build page it is improved into a stronger prompt, and you can keep your own words. A dictation costs about 2 credits.
- **The Look tile.** Eight art styles, from Pixel Art to Dark & Moody, each sent to the builder as a full recipe. You do not need to describe lighting yourself.

**5 | parts in a good game prompt**

- **1**: change per follow-up prompt
- **25**: Synagy Free Credits a day
- **8**: art styles in the Look tile

Now the limits. A free account gets 25 Free Credits a day on the Free model. On a finished template, the Free model changes the theme, names, texts, colors and tuning values but keeps the tested game code. New mechanics need a stronger model, and paid plans are paused during the free beta; see the [pricing page](https://synagy.org/pricing). In [Roblox Studio](https://synagy.org/roblox), the Synagy window makes no images or meshes yet. [Synagy for Minecraft](https://synagy.org/minecraft) builds Java Edition 26.2 mods with Fabric, not Bedrock.

## FAQ

### What is a good prompt to make a game with AI?

A good prompt names what the player does, how they win, how they lose, the controls and the art style. For example: "A fox collects 20 acorns before a 60-second timer runs out. Arrow keys to move. A wasp costs 1 of 3 lives. Pixel art."

### How long should an AI game prompt be?

We suggest two to five short sentences for the first prompt, one per part of the game. Longer prompts tend to mix several mechanics. Add new features later in separate follow-up prompts, one change at a time.

### What is a good Roblox game AI prompt?

Name the game type, the main loop and what shows on screen. For example: "An obby with 10 stages over lava. Each stage has a checkpoint. Lava sends the player back to the last checkpoint." Use exact instance names if the place already has parts.

### Can AI make a whole game from one prompt?

It can make a small playable game from one prompt. A full game with menus, levels and progression takes many follow-up prompts. Start with one mechanic that works, then grow it step by step. See our [guide to making a Roblox game without coding](https://synagy.org/blog/make-a-roblox-game-without-coding).
