Prompt
A prompt is an instruction typed into an AI chat: a description of what should be made, with your assumptions and the result you expect. What the AI replies depends on the prompt.
Published
When you make a game with AI, the prompt takes the place of programming: instead of writing code, you describe the game and then what you see on the screen. Whatever you leave out, the AI will choose for itself, so a good prompt saves you rounds of fixes.
How do you write a good prompt?
Google and Anthropic give similar advice in the documentation for their models:
- Be clear and specific: the genre of the game, the controls, the end of a round, the language of the in-game text.
- Give context: why you’re doing it and what already works.
- Show an example when you want a particular form.
- Say what form the answer should take, for example “the full code in a single HTML file”.
- Split a big task into steps and improve the prompt over several rounds: a good result often takes a few tries.
Example from practice
My first prompt for SlipZone started like this (translated from the original Polish):
I want to make a simple browser game, but I can’t code. Help me describe my game idea on one page.
Below it came a list of assumptions: the genre, the controls on a computer and a phone, the end of the game, the language of the in-game text and the graphics style. The prompt for the first version of the game had the line “for now only”, so that the chat wouldn’t build everything at once, and a request for the Phaser library. I described bugs like a player: what I click, what happens and what still works. I ended every later round with the sentence “Don’t change anything else. Give me the full code.”
What to watch out for
- Several changes in 1 prompt. The more things at once, the bigger the chance that something breaks. Give 1 topic per round: the score, then effects, then sound.
- The fix loop. After 2 failed fixes of the same thing, don’t ask for a third. Go back to the last working version, paste it into the chat and ask for the same change in a simpler way.
- A fragment instead of the whole file. When the chat returns only the changed piece of code, ask for the full file. Then you replace the file as a whole and don’t have to look for where to paste the fragment.
- Data in the prompt. Don’t paste passwords or other people’s data into the chat.
35 prompts for every stage of a game, from the idea to the description on itch.io, are in the bonus to the e-book “Make a Game with AI in a Weekend”.
Questions and answers
Does a prompt have to be in English?
No. I wrote the prompts for my game SlipZone in Polish, and free ChatGPT turned them into a working game. I asked for English only where the game needed it, for example for its name.
How many prompts does a simple game take?
SlipZone was made in free ChatGPT from 11 prompts in 30 minutes, including fixes for 3 bugs. I describe the process, with the prompts, in the article on how to make a browser game with AI.
See also
Articles that use this term

Founder of FKDRIVE and software developer. Builds and maintains web systems and automation.
Let us talk about your project.
Thirty minutes online about one or two processes that eat the most time. If you would rather write, the contact form is just as good a route.
Book 30 minutes