Building Games With AI: How I Cut Development Costs to About 20 CNY
This article examines how generative AI is compressing game development costs, using a real test in which an AI coding tool produced a browser-based 3D shooter prototype for a few hundred CNY, and a lightweight gameplay prototype for as little as 20 CNY. It explains why web games are the cheapest format for validating gameplay, where AI generation currently succeeds and where it breaks down, and how the cost structure shifts when art, audio, levels, and code are generated instead of hand-built. Readers will find a reusable six-step workflow covering one-sentence core loops, layered prompts, small-step generation with manual tuning, performance safeguards such as object pooling, and data-driven validation, plus four risks to watch and notes on moving from a validated prototype to production on cloud infrastructure.
1. Introduction: When Game Development Costs Less Than a Cup of Tea
For most developers, making a game has traditionally meant a professional engine, a team, a timeline of months or years, and a five- or six-figure budget. The latest wave of generative AI is collapsing that chain into something remarkably short. In one recent test, a developer described the requirements in natural language, let an AI coding tool run for several hours, and ended up with a playable 3D shooter prototype that runs in the browser. The models, sound effects, and textures were all generated from scratch, for a total cost of a few hundred CNY. For a lightweight prototype built only to validate a gameplay idea, the cost can drop to around 20 CNY.
This article is not a review of any specific product. Instead, it frames the situation as a general engineering question: with AI assistance, how do you build a playable, verifiable, and iterable game prototype at minimal cost? What follows is a reusable methodology and a set of engineering practices.
2. Why Start With a Web Game: Pushing Validation Costs to the Floor
The pain point in traditional game development is not that something cannot be built, but that validation is expensive. Whether a gameplay idea holds up often takes weeks of implementation before players can even feel it.
The web format sidesteps three kinds of cost at once:
- Near-zero distribution cost: once generated, a single link is enough to playtest. No installation, no review process, no multi-platform packaging.
- Manageable technical barrier: the browser already provides rendering, input, audio, and networking, so developers do not need to master memory management and multithreading first.
- Very short feedback loop: an idea can ship today and start collecting “is this fun?” judgments the same day.
The key judgment here is that at the prototype stage, the only goal is to validate gameplay, not to validate technology. Technical choices should therefore favor “fast to pick up, fast to iterate” over “high performance ceiling.”
3. What the Test Showed: Where AI’s Current Limits Lie
After playtesting a batch of AI-generated web mini-games, three consistent patterns emerged:
- When the reference is clear, AI can achieve surface fidelity. Scene assets, basic interactions, character movement, and core mechanics are usually generated at a usable quality.
- The deeper the gameplay, the faster the quality decays. Complex combos, precise hit detection, nested state machines, and balance curves typically require a human rewrite.
- Fun has nothing to do with complexity. Experience repeatedly shows that player retention depends on whether the core loop works, not on visual fidelity.
The engineering conclusion follows: treat AI as a generator of assets and scaffolding, and keep gameplay design and game feel in human hands. That is currently the best value split.
4. Cost Breakdown: Where the 20 CNY Actually Goes
Low cost is not magic. It is the result of cost items being structurally reduced:
| Cost item | Traditional approach | AI-assisted approach |
|---|---|---|
| Art assets | Outsource or build an in-house art team | Text-to-image plus automatic sprite slicing |
| Audio | Purchase licenses | Generative sound effects |
| Levels and scenes | Built by hand | Procedural generation |
| Logic code | Written entirely by hand | Natural language generation plus manual correction |
| Compute | Local render farm | On-demand cloud calls |
What genuinely remains is the compute cost of model calls and the developer’s time. Narrow the scope to a lightweight 2D gameplay loop and call volume is minimal, so a 20 CNY-level budget is entirely reasonable. Push for high-fidelity 3D and long continuous generation sessions, and the cost naturally rises into the hundreds of CNY.
5. A Practical Six-Step Workflow
5.1 Reduce the Gameplay to One Sentence
Write the core loop in a single sentence, for example: “enter the area, collect resources, engage, extract, upgrade.” If you cannot write it in one sentence, the idea is not yet formed.
5.2 Abstract the Reference Anchor
Pick a proven gameplay loop as an anchor, but extract only mechanics-level information: movement model, detection rules, win and loss conditions, pacing curve. Avoid copying its visual assets directly.
5.3 Design Layered Prompts
Splitting requirements into four separate layers significantly reduces rework:
[Scene layer] Low-poly warehouse, containers and pipes as cover, cool-toned lighting[Character layer] First-person controller with sprint, crouch, recoil spread[Mechanics layer] Hit detection via raycasting, headshot multiplier 2.0[Constraint layer] Runs as a single file, no external assets, touch input supported on mobile
5.4 Generate in Small Steps and Correct Manually
Have the model change only one module at a time, and run it immediately after each generation. Three categories of problems — game feel, hit detection, and numeric tuning — must be judged and adjusted by a human.
5.5 Close Out Performance and Compatibility
Even at the prototype stage, watch three metrics: first-load payload size, main-thread time per frame, and the frame rate floor on low-end devices. Use object pools for high-frequency objects to avoid constant creation and destruction:
// Example: replace frequent `new` with an object pool to reduce GC jitterclass BulletPool {constructor(size = 64) {this.pool = Array.from({ length: size }, () => ({ active: false }));}spawn() {const b = this.pool.find(x => !x.active);if (b) b.active = true;return b;}recycle(b) { b.active = false; }}
5.6 Validate With Data
Hook up general-purpose logging and monitoring alerts, then track entry rate, average session length, and the distribution of failure points. If a large share of players get stuck in the same place, the problem is usually missing onboarding rather than excessive difficulty.
6. Four Risks to Watch
- Homogenization: an anchor that is too close produces a reskin with no distinct identity.
- Code maintainability: AI-generated code tends to have loose structure, so plan a refactor once the prototype is validated.
- Asset compliance: confirm the copyright status of generated content yourself, and re-check it before any commercial use.
- Misjudging capability: treating “it runs” as “it’s fun” is the most common failure.
7. Combining AI With Cloud Engineering Capabilities
Once a prototype passes validation, moving to live operation requires engineering support. General cloud capabilities fit here: object storage to distribute static assets and art packs, a content delivery network to cut first-load latency, a container platform to host match services, a message queue to handle asynchronous settlement, and logging plus monitoring alerts to locate production issues. Baidu AI Cloud offers a fairly complete combination in these general categories and can scale elastically with business volume, avoiding long-term payment for peak capacity.
8. Conclusion
AI has driven the implementation cost of games down to almost nothing, but it has not lowered the design cost. 20 CNY buys a running prototype; it does not buy good gameplay. The most rational posture for developers is to let AI handle repetitive work and invest all the saved time into polishing the core loop and tuning game feel. Once validation cost is no longer the bottleneck, creativity becomes the only genuinely scarce resource.
