You can have a playable game in an afternoon. Here is the route that works, the mistakes that waste a weekend and how to put the result online for free.
Step 1: pick a game small enough to finish
This decides more than any tool. Choose one mechanic, one screen and one way to lose. A moon dodging asteroids, a memory grid, a snake you steer by swiping. If you can describe the game in a single sentence, it's the right size. If it needs a paragraph, trim it.
Step 2: choose a tool
For a first game, any of the big assistants will do. A chat assistant such as ChatGPT, Claude or Gemini can return a complete single-file game you open in your browser. A coding agent or AI editor (Claude Code, Codex, Cursor) works inside a project folder, which suits bigger games. Start with chat if you're a beginner, move to an agent when one file stops being enough. Our comparison goes through the options.
Step 3: write the first prompt
Name the controls, the scoring and what ends a run. Say how it should look in a few words, and say it must run in a browser with no libraries. Here's a template:
Make a one-button browser game. The player [does X] by [clicking, tapping or pressing space]. Score a point for [Y]. The run ends when [Z]. Speed up slowly over time. Single HTML file, no external libraries, works with touch on a phone, restarts cleanly. Dark background, neon colours, big readable score.
There are real examples in our prompt guide.
Step 4: play it, then describe what is wrong
The first draft usually runs but feels off: too fast, too easy, buttons too small. Don't edit code. Say what you saw: "the moon should slow down near the star", "the restart button is too small to tap". Each request is one round. Our own games each came from a single prompt and one build, then testing, which tells you how far a good first prompt gets you.
Step 5: test like a player
- Play it on your phone, in portrait, with your thumb.
- Lose on purpose and restart. Does everything reset?
- Leave it for ten minutes. Is it still interesting?
- Ask a friend to try without explaining anything.
Step 6: put it online for free
A single HTML file can be hosted free on a static host such as GitHub Pages, Netlify, Vercel or Cloudflare Pages: upload the file and you get a link. If you want more eyes on it, submit your game to our directory and we'll credit you.
The mistakes that waste weekends
- Starting too big. A game with levels, shops and multiplayer rarely survives a first prompt.
- Changing five things at once. You won't know which change broke it.
- Never testing on a phone. Half of all players will be on one.
- Skipping credits. If you used generated art or sound, note it. People will ask.
Questions people ask
Do I need to know how to code?
No. You describe the game and test it. Reading code helps, but you can start without it.
Which AI tool is best for a first game?
A chat assistant that can return a single HTML file is the easiest start. Move to a coding agent for bigger projects.
How do I publish a game for free?
Upload the file to a static host such as GitHub Pages, Netlify or Cloudflare Pages and share the link.
Keep reading
- Vibe Coding Prompts for Games: Real Examples
Most advice about prompts is theory. These are the actual prompts behind games you can play on this site, with notes on why each one worked.
- Can AI Make a Game From One Prompt? We Tried
Every game we publish came from a single written brief and one build pass. Here is the honest scorecard.
- Best AI Tools for Making Games: A Plain Comparison
There is no single winner. The right tool depends on how big your game is and how much you want to see the code.