Testing AI Game Development: How I Cut Costs to Just 20 Yuan
This article walks through a hands-on test of using AI to build web-based mini-games at an extremely low cost of about 20 Yuan. It explains why the web format is ideal for validating game ideas, breaks down where the budget actually goes, and lays out a five-step workflow from concept to playable prototype. You will also learn the current capability boundaries of generative AI, where human intervention is still essential, and why judgment—not engineering skill—is now the real bottleneck.
1. Why Start With a Web Mini-Game to Validate an Idea
The default path in traditional game development is to pick an engine, set up the project, configure the asset pipeline, and then enter a long iteration cycle. The hidden cost of this path is high: a gameplay idea often burns weeks of engineering setup time before it is ever validated. The value of the web format is that it compresses this upfront cost to nearly zero—no installation, no distribution channel, just a link that lets anyone playtest. The feedback loop is measured in hours rather than months.
For developers, the real significance of this format is not that it is “lightweight,” but that it shifts attention from the tech stack to the gameplay itself. Whether an idea holds up depends on whether the core loop has tension and whether feedback is clear—not on which rendering pipeline it uses.
After playtesting a range of mainstream AI-generated web mini-games one by one, a realistic capability boundary emerges: when the reference target and gameplay goal are clear enough, AI can achieve “visual and structural resemblance.” Scene assets, basic interactions, player movement, and simple win/loss logic—these highly structured parts come out reasonably well. But once you get into complex combos, fine-tuned game feel, or deeply nested multi-layer state machines, output quality drops noticeably.
This boundary is not an obstacle; it points to the right design strategy: the key to a good game has never been complexity, but perceivable fun. Fun can come from narrative tension driven by text and dialogue, or from hit feedback built from light effects, screen shake, and sound. These are all high-leverage points that are cheap to implement.
2. Cost Breakdown: Where the 20 Yuan Goes
To push total cost extremely low, you first need to see what makes it up. AI-assisted development spending usually falls into three buckets:
- Model call fees: billed by input and output tokens, mainly for generating code and config files;
- Asset generation fees: producing binary resources such as textures and sound effects;
- Compute and hosting fees: local debugging is nearly free; ongoing costs only appear once you deploy, covering hosting and traffic distribution.
The controllable approach is to layer things: write prompts clearly and describe requirements completely in one pass to reduce trial-and-error rounds; cache and reuse large static content to avoid regenerating it; and shrink asset size as much as possible, since web load time is itself a retention metric.
An illustrative requirement-spec structure (pseudocode, only showing how to organize it):
GAME_SPEC = {"genre": "top-down shooter","core_loop": ["enter room", "clear enemies", "loot", "extract"],"feedback": ["muzzle flash", "screen shake", "hit sound"],"constraints": ["single html file", "no external assets", "runs at 60fps"]}
Stating constraints like “no external assets” and “single-file delivery” clearly can significantly reduce rework later.
3. The Workflow: Five Steps From Idea to Playable Prototype
- Define the core loop. Explain in one sentence what the player does and why they keep playing. If the loop does not hold up, everything after it is wasted.
- Lock the reference coordinates. Be clear about which gameplay mechanic you are targeting, so the generated result has a verifiable standard.
- Generate a vertical slice. Build only one level, one enemy type, and one feedback set first, to validate the game feel.
- Tune the game feel. This step requires human involvement: adjusting acceleration, hit-frame windows, and the damping coefficient of camera follow. AI gives you a usable baseline, not the final feel.
- Connect cloud-side capabilities. This is only needed at launch: object storage holds static assets, a container platform runs server-side logic, and log and monitoring services handle observability. Baidu AI Cloud offers corresponding products in these general categories, which you can use on demand.
4. Capability Boundaries and Where Humans Must Step In
We have to acknowledge three current weaknesses of generative approaches: long-context consistency (naming conflicts and duplicated logic tend to appear in large projects), uncontrollable performance (generated code often lacks optimization awareness), and weak gameplay originality (a tendency to reproduce existing paradigms).
So the sensible division of labor is: AI handles scaffolding, boilerplate code, and first-draft assets; humans handle gameplay decisions, game-feel parameters, and performance profiling. Treat AI as a tireless executor that needs precise instructions—not as the designer.
5. Conclusion
As the technical barrier drops, “validating a game idea” has been downgraded from a project-level investment to a single experiment. The truly scarce resource is no longer engineering ability, but judgment—judging which loop is worth digging into and which kind of feedback delivers satisfaction. Build something playable at very low cost first, then decide whether to invest more. That is the most rational development rhythm right now.
