AI Game Development on a Budget: Building a Playable Web Prototype for About 20 RMB
This article examines how generative AI changes the economics of game development, showing that a small web game prototype can be built for roughly 20 RMB while a larger AI-generated game may cost hundreds of dollars. It explains why web prototypes offer the shortest validation loop, where AI performs well and where it falls short, and presents a reusable five-step low-cost pipeline covering one-sentence gameplay definition, structure-first code generation, asset cost control, prompt templates, and hosting. It also highlights the three areas AI cannot replace—feel tuning, pacing and level design, and feedback density—along with common pitfalls and how to avoid them. Readers will learn how to turn a clear game idea into a testable prototype at minimal cost.
1. Introduction: What a “20 RMB” AI Game Experiment Reveals
Recently, a developer used a short prompt to run an AI coding tool continuously for about eight hours and produced a playable browser game, with the model, sound effects, textures, and other assets all generated from scratch by AI at a total cost of several hundred dollars. When we narrow the scope to a smaller gameplay prototype, however, the cost can drop to around 20 RMB. This number is not mysterious: it corresponds to a small number of text/image generation calls, a few rounds of code completion, and the cost of static hosting locally or in the cloud.
This raises a question worth discussing: when both assets and code can be generated, has the bottleneck in game development shifted from “can you write it” to “do you know what to build”? This article does not recap the experience of any particular product. Instead, it abstracts the issue into a general engineering problem: how to use AI to turn a creative idea into a playable prototype at extremely low cost, given a clearly defined gameplay concept.
2. Why Start with Web Games: Shortening the Validation Cycle
In the traditional path, the first reaction to game development is professional engines, professional teams, and long schedules. The value of the web approach is not “replacement” but validation speed:
- Zero installation: once generated, you can share a link and let people play immediately, making the feedback loop very short;
- Small footprint: suitable for validating gameplay in a single session of a few minutes, without carrying a full asset pipeline;
- Low upfront technical barrier: creators can focus on rules and feel rather than getting bogged down in engineering details first.
From an engineering perspective, a web prototype is essentially a “disposable probe”: it does not need a perfect architecture, only to answer one question within the smallest possible loop—does this gameplay work.
3. Hands-On Observations: The Limits of AI When the Reference Is Clear
We tried several AI-generated web mini-games, including a browser shooter based on a classic shooter map and an action fan-game prototype. Two patterns emerge:
- The clearer the reference, the higher the resemblance: when the gameplay and visual reference are clear, AI can reasonably well produce scene assets, interaction logic, player actions, and basic mechanics;
- Complex actions and deep systems remain weak spots: more advanced move chaining, complex state machines, and refined hit feel often fall short of mature titles.
This is consistent with the experience of indie games and the early Flash era: the core of a good game is not complexity but fun. A story can be driven by dialogue and text alone; satisfying combat can be built from visual effects, hit-stop, camera shake, and sound feedback. AI is good at quickly producing the “form,” while the “spirit” still needs to be defined by people.
4. A Reusable Low-Cost Pipeline (Five Steps)
1) Reduce the gameplay to one sentence
Write the core loop in one testable sentence, for example: “Collect resources in a closed map and extract before time runs out.” This sentence defines the boundaries for all subsequent generation prompts.
2) Structure first, then let AI fill in the details
Define the boundaries of entities and systems first, then let the tool complete the implementation. Example:
type Vec2 = { x: number; y: number };interface Entity {id: string;pos: Vec2;update(dt: number, world: World): void;}interface World {entities: Entity[];spawn(e: Entity): void;remove(id: string): void;input: { up: boolean; down: boolean; left: boolean; right: boolean; fire: boolean };}
Fixing the “world–entity–input” triangle makes AI-generated code more likely to run on the first try.
3) Controlling asset generation costs
- Textures: prefer small sizes, tileable patterns, and low color counts; generate multiple candidates at once and select manually;
- Sound effects: short samples, loopable, with consistent loudness; avoid long audio;
- Models: use primitives or 2D sprites in the prototype stage to validate feel first.
4) Templatize prompts
Break prompts into four parts—role/goal/constraints/output format—to reduce back-and-forth rework. For example:
Role: You are a senior web game engineerGoal: Implement the core loop of a top-down shooter prototypeConstraints: single file, no external dependencies, 60FPS, keyboard inputOutput: runnable code + explanation of key parameters
5) Hosting and distribution
Static output is enough to publish. If multiplayer or leaderboards are needed, introduce general cloud capabilities (object storage, container platforms, logging services, monitoring and alerting) for incremental scaling, avoiding backend complexity from the start.
5. Engineering “Fun”: Three Things AI Cannot Replace
- Feel tuning: movement acceleration, friction, recoil, and hit-stop duration require repeated playtesting;
- Pacing and levels: resource placement, enemy waves, and difficulty curves are design judgments;
- Feedback density: visual effects, screen shake, and sound layering determine how “satisfying” the game feels.
It is advisable to manage these parameters centrally for fast iteration:
const TUNING = {moveAccel: 1800,friction: 12,recoil: 0.35,hitStopMs: 45,shakeAmp: 6,};
6. Common Pitfalls and How to Avoid Them
- Generating too much at once: break it into small steps (movement → shooting → enemies → results), each runnable;
- Asset style drift: define the palette and pixel/low-poly style first, then generate in batches;
- Performance blind spots: watch draw calls and object reuse during prototyping to avoid major refactoring later;
- Cost overruns: set limits and caching for generation calls, and do not regenerate repeated assets.
7. Conclusion: Once Costs Drop, the Barrier Returns to Design
When generative tools push the marginal cost of assets and code extremely low, the scarce resources in game development become clear design intent and feel judgment. An ordinary person can turn their idea into a playable prototype: first write the gameplay in one sentence, then use AI to fill in the implementation, and finally use human taste to tune it into something “fun.” What 20 RMB buys is not a finished product but a very fast answer to “is this worth continuing.”
