Making Impressive Games from Scratch with AI

A research guide to the tools, workflows, and craft of building genuinely good games with LLMs — synthesized from current (2026) practitioner guides, community showcases, and real shipped projects.

Compiled September 2026 Research & HTML by Hermes Agent

1The 2026 Landscape

Making a game with AI is no longer a question of technical skill — it's a question of knowing what to build and which tool to use. Three things converged to make this the best time ever to start:

⏱ The time collapse AI has collapsed the distance between "I have a game idea" and "people are playing my game" from months to hours. A simple browser game: 2–6 hours. A polished game with custom art and levels: a weekend to a week.

2Four Approaches — Pick Based on Your Goal

① Vibe-code a browser game (best for beginners)

Describe the game to an AI assistant; it generates HTML/CSS/JS that runs in any browser. No installs, no engine, no prior coding. Claude is particularly strong at complete single-file HTML5 canvas games; Cursor excels at iterative back-and-forth.

② AI-native / AI-assisted engine

Summer Engine (AI-native, Godot 4-compatible), Godot + AI plugins, Unity + AI Copilot, Unreal + MCP. The AI builds scenes, attaches scripts, wires physics and input inside the project — no copy-paste wiring step. Choose when you need real physics, 3D, or Steam/mobile export.

③ LLM-powered game (AI as game component)

The AI isn't just the builder — it's inside the game: generating narrative, dialogue, and events in real time via the OpenAI/Anthropic/local-model APIs. Uniquely possible in this era. Cost is fractions of a cent per interaction with small models.

④ No-code + AI hybrid

GDevelop, Construct, RPG Maker — visual drag-and-drop builders where AI generates the complex logic. Less flexible, but zero code files. Good for people who want nothing to do with a text editor.

🤖 The one decision that matters more than the model Where does the AI work? A chat model writes code and hands you files — then you create the project, paste scripts, fix import paths, and wire nodes. An AI-native engine builds the scene, writes and attaches the movement script, sets up the physics body, binds input, and hands you a build to press play on. For anything past the first prompt, the second option holds up far better: the AI works against a running game, not a blank file.

Choosing a first project by difficulty

TierProjectTime with AI
BeginnerText adventure / interactive fiction2–3 hours
Quiz or trivia game2–4 hours
Snake / Pong / Breakout clone3–5 hours
Card game (memory match, solitaire)4–6 hours
IntermediatePlatformer with level design1–2 days
Tower defense2–3 days
Turn-based RPG3–5 days
Puzzle game with original mechanics2–4 days
AdvancedMultiplayer browser game1 week+
3D game (Three.js / Unity)Weeks; camera + lighting + physics
LLM-driven dynamic-content gameTechnically demanding, uniquely 2026

3The Core Workflow That Works

Synthesized from practitioner guides, this is the loop that consistently produces finished games:

Step 1 — Compress your idea into one sentence

Write your core loop as a single sentence with three parts: the player, the action, and the condition that ends a round.

Notice what these leave out: story, art, menus, sound, levels. Those come later. The first prompt exists to get a running game on screen, because AI works far better against a build it can reason about than a blank file.

🚫 The #1 killer: front-loading the dream "An open-world RPG with crafting, dialogue, a day-night cycle, and three factions" is not a brief — it's a five-year plan. It gives the AI no playable target and no place to start. Scope kills more first games than technical difficulty. Compress first; expand after it runs.

Step 2 — Start from a template, not an empty project

A blank project forces the AI to invent your player controller, camera, input, and physics from the prompt alone — and every invented piece is a place for an early bug you never asked for. Starting from the closest genre template (platformer, survivors-like, RPG, sim, puzzle-grid) means foundational systems are already correct and your first prompt becomes "change the character to a wizard and make the coins into mana crystals" instead of "build a platformer from nothing." Small, specific prompts are where AI is strongest.

Step 3 — Prompt the core loop, then press play immediately

🔁 The golden rule: one change → play → observe → next change When you change one thing and test one thing, a bug has exactly one suspect. When you batch ten changes, you're debugging a haystack the AI built while you weren't watching. Pressing play after every prompt feels slow for ten minutes — then it saves you the afternoon.

After the base loop runs, add mechanics one at a time, playing after each:

// Each of these is a single, testable step:
"Add a double jump."
"Make enemies drop a coin when killed."
"Add a health bar in the top left that goes down when I touch an enemy."
"When my health hits zero, show a game over screen with a restart button."

Step 4 — Generate the assets too, but direct them

Art, sound effects, and music can all be generated in the same conversation (see section 5). The honest caveat: art direction is where AI follows rather than leads. Decide the style yourself, describe it precisely, and treat output as a strong first pass.

Step 5 — Playtest like the AI cannot

AI builds the scaffold in minutes so you can spend your hours on the part it can't do: judging whether the game is fun (section 6).

Step 6 — Export the real thing

A prototype that only runs in a preview is a demo, not a game. Before investing hours, confirm your tool allows commercial use and native export — many browser-based AI game tools cap generations, watermark builds, or lock export behind a paywall. That's a hard wall to hit after the game is finished.

4The Prompting Craft

Writing a game with AI is closer to working with a fast, literal collaborator who builds exactly what you write — including the parts you didn't mean. The skill that decides success is how you write the request, not whether you can code.

The anatomy of a good mechanic prompt

The thing.    Which exact node/object: the Player, the Enemy, the Coin.
The trigger.  What starts it: a key press, collision, timer, game start.
The result.   What happens — with real numbers and names.
The feedback. What the player sees/hears so the change is visible.

// The whole pattern in one sentence:
"When the Player collides with a Coin, remove the Coin, add 1 to the
score, and play the pickup sound."

Vague vs. precise — same intent, different outcomes

✗ Vague (forces the AI to guess)

  • "Make the player move and feel good and have nice physics."
  • "Make the movement feel better."
  • "Make me a game."
  • A whole system in one message → the AI makes a dozen unstated design decisions, and you can't tell which one caused the bug.

✓ Precise (nothing left to get wrong)

  • "Make the Player move left and right at 300 pixels per second with the arrow keys, and stop instantly when I let go."
  • "Make the Player jump 400 pixels high when I press space, and play the jump sound."
  • Names the node, the speed, the keys, the stop behavior — every value pinned down.

An example of a strong first prompt for a single-file game

"Create a complete Breakout/brick-breaker game in a single HTML file.
Requirements: HTML5 canvas sized 800x600. Paddle at the bottom controlled
by mouse movement. Ball bounces off walls, paddle, and bricks. 5 rows of
8 bricks in different colors. Score display. 3 lives. Game over and
victory screens. Smooth 60fps animation. Clean visual style with a dark
blue background."

Think of your prompt as a mini design document: mechanics, dimensions, controls, and visual style. Ten minutes writing a detailed prompt saves hours of back-and-forth fixes.

Iterating: expect 70–80% right, then fix in small loops

"The ball clips through bricks when moving fast. Fix the collision detection."
"Add a power-up that drops randomly from broken bricks — one widens the paddle,
one adds a second ball."
"Add sound effects using the Web Audio API. A thud on brick hit, a ping on paddle."
"The game feels too easy. Make ball speed increase 5% every 10 bricks destroyed."

Each prompt-and-fix cycle takes 2–5 minutes. After 10–15 rounds you have something that feels like a real game.

🐞 Write bug reports, not bug guesses When something breaks, resist stating a theory of the cause. A wrong guess sends the AI off fixing the wrong thing.

✗ "The jump code is broken. Fix the physics."
✓ "When I press space, the Player rises about half as high as before and then falls through the floor."

Describe what you saw on screen, when, and what you expected instead. Clear symptoms get clean fixes; confident wrong theories get the wrong file edited.

5AI-Generated Assets: Art, Audio, 3D

A game is not only code. A practical 2026 solo-dev asset stack looks like this:

Asset typeWhat AI does wellTools (2026)
2D sprites & animation Full spritesheets (idle / walk / run / attack / hit / death), looping or one-shot, generated in your game's style and dropped straight into the engine. Ludo.ai, Spritesheets.AI, Leonardo AI, Midjourney (concept)
Concept & pre-production Rapid concept art, reference images, pressure-testing scope and ideas with ChatGPT/Claude before building. Midjourney, DALL·E, Leonardo AI, plain LLM chat
Music Looping background tracks, ambient audio, trailer/cinematic scoring, on-brand soundtracks. Suno-class music generators, AI scoring tools
Sound effects Procedural SFX; or skip files entirely and synthesize thuds/pings in code via the Web Audio API (AI writes it in one prompt). AI SFX generators, Web Audio API code-gen
3D models & worlds Text-to-3D models, textures, icons, UI; frontier models can generate explorable 3D worlds and full game demos from a single prompt. Ludo.ai (3D), Sketchfab for publishing/showcase, image-to-3D pipelines
Living NPCs Dialogue and behavior generation — NPCs that respond to any player input. LLM dialogue tools, in-game LLM APIs (section 2, approach ③)
🎨 Art direction is a human job Generated art gives you a consistent, usable starting point fast — but AI follows style, it doesn't choose one. A coherent look across the whole game is a human decision the AI executes. Decide the style yourself, describe it precisely in every asset prompt, and treat outputs as a strong first pass you can swap later.

6What AI Cannot Do: Game Design

AI writes the game; it does not have taste. It will build exactly the difficulty curve, scope, and feel you describe — including a boring one — and it will never tell you the game isn't fun. These fundamentals stay yours:

Game feel

The responsiveness between input and action. Heavy or floaty? Do collisions land with impact? Play-test and tune values (gravity, speed, acceleration) until movement feels right — the AI implements, you judge.

Difficulty curve

Too easy is boring; too hard is frustrating. The sweet spot: constantly challenged, rarely stuck. Deciding the shape of the curve requires playtesting with real people.

Player feedback

Every action needs a visible response: button → animation, hit → screen shake/flash, score → number pop-and-fade. AI can implement any pattern you describe; spotting where feedback is missing is your job.

Scope management

The most important design skill: knowing what to cut. First game = one thing done well, not ten things done poorly. New feature idea? Ask: does it make the core mechanic more fun, or is it a distraction?

Turning feel into prompts

Play your game repeatedly, watch someone else play it (without explaining anything — if you have to explain, the design needs work), then convert what you felt into specific prompts:

"The jump feels too floaty — reduce air time by about thirty percent."
"Enemies spawn too fast in the first wave — halve the early spawn rate."

A structural lesson from shipped LLM games

⚙️ Rules layer > model rulings Early AI-driven games failed in a predictable way: with the LLM deciding outcomes, nothing was ever really at stake — a player who argued well could talk their way into any result. The fix was structural, not prompt-level: outcomes live in a rules layer the model cannot overrule, and the model keeps the writing. (Pattern from HowWorks' shipped AI games: AI opponents invent their own bluffs, but who wins the round is settled in code.)

7Proof It Works: Real AI-Built Games

From the awesome-ai-built-games curated list and community showcases — games built mostly by prompting LLMs, spanning every genre:

Browse the full list: github.com/lappemic/awesome-ai-built-games. Daily AI-generated game directories also exist (GameDaily.ai publishes a brand-new AI-made browser game every day; Whimcade builds games from one-paragraph prompts).

Frameworks that connect AI agents to engines

8Common Mistakes (and How to Avoid Them)

MistakeFix
Starting too ambitiousYour first game should take hours, not weeks. Make Snake before you make Stardew Valley.
Not playtestingAI code compiles and runs — that doesn't mean it's fun. Iterate on the feel, not just the features.
Weak promptsPrompt quality is the single biggest factor in game quality. Specific mechanics, dimensions, controls, visual style.
Batching many changesOne mechanic per prompt, play after each. A bug should always have exactly one suspect.
Adding features instead of polishingA simple game that feels great beats a complex game that feels janky. Before "add multiplayer," ask "is single-player excellent yet?"
Not reading the generated codeSkim it. After a few games you'll recognize patterns — and your prompts get dramatically better.
Ignoring licensing before investing hoursCheck commercial-use rights, generation caps, watermarks, and export locks before building something you intend to ship.

9Shipping & Finding Players

Where this leads

10Sources