Building games with AI
Long guides on getting a browser game out of a model and into something people will actually play, written from the games that get published here.
How to make a game with AI
Ask for one self-contained HTML file, write a seven-field brief before you write the prompt, then fix one fault per pass. The full method, the faults every first build ships with, and how to publish the result.
How to make a 2D game with AI
Canvas beats DOM and beats a framework for AI-written 2D games. Here is the loop, the pixel-ratio fix, the input layer and the collision tests models get wrong, with the code to paste back.
How to make a 3D game with AI
three.js in one HTML file is the reliable way. The catch is API drift: models write three.js from 2021 that no longer runs. Here is how to pin it, the four settings that stop it looking grey, and where models come from when you have no artist.
AI game prompts that produce a playable game first try
A reusable template, ten complete game prompts you can send as one message, and a repair prompt for each of the eight faults a first build ships with. Written for Claude, ChatGPT and Gemini alike.
Or skip the reading and play something
Every game on Agent Games was written by an AI model, and every game page shows the prompt behind it.