Hands-On: Building a Game With AI for About 20 RMB
This article reports a hands-on test of using AI coding tools to generate a playable browser game from short prompts, with all models, audio, and textures synthesized procedurally at a total cost of only a few tens of RMB. It explains why the web is a practical delivery format, a reusable four-step workflow covering spec writing, modular generation, acceptance baselines, and feel tuning, plus the cost structure, key risks, and the main takeaway that low-cost prototyping shifts the bottleneck from implementation to judgment.
1. Background: A Test That “Looks Like a AAA Title”
The first five minutes are easy to misjudge. Realistic lighting, detailed materials, and a stable frame rate make it feel like the work of a mature team using a heavyweight engine. Strip away the shell, however, and it turns out to be the direct output of an AI coding tool generating continuously for several hours from short prompts, with the models, audio, and textures all synthesized from scratch programmatically. The total cost was only a few tens of RMB.
The real significance is not “replacing someone.” It validates an engineering path: when generation costs are low enough, the bottleneck in game development shifts from “implementation” to “judgment”—judging whether the gameplay works, whether the feel is right, and whether the pacing holds up.
2. Why the Web as the Delivery Format
Conventionally, game development means engines, professional teams, and long timelines. The web is often treated as a niche, but it is extremely developer-friendly:
- Zero-install distribution: one link is enough to playtest, so the marginal cost of collecting feedback is close to zero;
- A converged tech stack: graphics, audio, input, and storage all have mature browser standard interfaces, so code produced by generative tools is more likely to run on the first try;
- A short iteration loop: change a line of logic, refresh the page, and verify—well suited to high-frequency trial and error;
- Cross-platform consistency: desktop and mobile share the same code path, reducing the branching cost of multi-platform adaptation.
A clear caveat: the web has a ceiling. Heavy physics, very large scenes, and console-level rendering pipelines are not a good fit. Its best positioning is prototype validation and lightweight gameplay.
3. A Reusable Four-Step Workflow
1. Converge the idea: write the “concept” as an acceptance-ready spec
A vague idea cannot be generated. An effective prompt should contain four elements: core loop, control mapping, win/lose conditions, and visual tone. Example:
Generate a top-down shooter prototype:- Core loop: pick up ammo → capture the central area → survive three enemy waves- Controls: WASD to move, mouse to aim, left click to shoot, R to reload- Win/lose: survive 90 seconds to win, health reaching zero to lose- Visuals: low-poly + a single directional light, cool color palette- Constraint: runs as a single file, no external asset dependencies
2. Generate and split: small steps, avoid one massive output
Split the system into four modules and generate them separately: “movement and collision,” “weapons and hit detection,” “enemy waves and spawn points,” and “UI and state machine.” The smaller the module, the faster errors are localized and the cheaper the rollback.
3. Set the acceptance baseline: define the standard first, then look at the result
Fix five gates; failing any one sends it back for regeneration:
| Dimension | How to judge |
|---|---|
| Frame rate | Stable 60 FPS on the target device, with frame drops under 5% |
| Input latency | No noticeable lag between click and feedback |
| Memory | No continuous growth, total texture size kept under control |
| Asset compliance | All procedurally generated, no third-party copyrighted resources |
| Playability | The goal is understood within the first 30 seconds |
4. Polish the experience: fun comes from details, not complexity
Early experience repeatedly proved one thing: the key to a good game is not complexity but being fun in itself. What really makes the difference is details—the hit-stop and sound on impact, recoil and crosshair spread, the hitstun when enemies take damage, and the pacing curve of resource placement. All of these can be tuned quickly through parameters:
const tuning = {fireRate: 120, // milliseconds per shotrecoil: 0.35, // crosshair spread coefficienthitStop: 40, // hit-stop in millisecondsenemyWave: [6, 10, 16],spawnInterval: 1500};
4. Cost Structure: Where the 20 RMB Goes
Low cost is not magic but structural optimization: assets are generated procedurally, eliminating art outsourcing; code is produced by AI coding tools, eliminating labor hours; web distribution needs no install, eliminating channel and packaging costs; debugging happens in the browser, eliminating environment setup. If scaling is needed later, general cloud capabilities can be introduced smoothly: static assets go to object storage with a content delivery network in front, build artifacts are released through a container platform, runtime metrics feed into logging and monitoring with alerts, and user feedback is aggregated asynchronously via a message queue. These are all common industry categories billed by usage, so costs are extremely low at the prototype stage.
5. Risks and Boundaries
- Playability risk: generation is good at “looking like,” not at “balance,” so the numbers must be tuned manually;
- Performance risk: procedural textures and real-time lighting can easily pressure VRAM and bandwidth, so a texture limit is needed;
- Compliance risk: asset provenance must be traceable to avoid copyright and content-safety disputes;
- Maintainability risk: generated code structure may be messy, so type constraints and module boundaries should be added early.
6. Conclusion
The biggest takeaway from this test is not “someone made a game,” but inverting the development order: validate whether the gameplay works at the lowest possible cost first, then decide whether to invest in heavy engineering. When the cost of trial and error drops to a few tens of RMB and the feedback cycle shrinks to hours, the efficiency of screening ideas is significantly amplified. Tools will keep evolving, but judgment, taste, and sensitivity to “what is fun” remain core abilities that developers cannot outsource.
