AI Web Game Development: How a Playable Prototype Cost About 20 RMB
This article reports a hands-on test showing that one developer can build a browser-based game prototype with lighting, materials, and sound in a very short time for roughly 20 RMB. It explains why the web is an effective minimum viable platform, breaks the workflow into four stages (gameplay definition, code generation with engineering constraints, asset generation, and debugging), and analyzes why costs drop so sharply. It also outlines what AI still does poorly, such as deep gameplay systems, precise game feel, long-term maintainability, and copyright compliance, and closes with a practical checklist for developers.
1. Test Background: Low-Cost Web Game Generation Is Becoming Viable
When people think about game development, they usually picture specialized engines, large teams, long schedules, and expensive art assets. In the browser, however, games need no installation, can be distributed by link, and can be iterated quickly, which makes the web an efficient vehicle for validating ideas. A recent hands-on test showed that with AI coding tools and generative models, a single developer can produce a web game prototype featuring lighting, materials, and sound effects in a very short time, at a total cost of roughly 20 RMB.
This result does not mean fully automated output with no human involvement. A more realistic description is that AI handled code scaffolding, asset placeholders, logic drafts, and debugging assistance, while the human defined the gameplay, calibrated the experience, and performed final acceptance. Understanding this division of labor is the prerequisite for reproducing low-cost development.
2. Why the Web Works as the Minimum Viable Platform
The core advantage of web games is not visual fidelity but feedback speed.
- Low distribution cost: Once static assets are generated, the game can be shared by link, with no app store review or installation flow.
- Fast validation: Whether a gameplay hypothesis holds can usually be answered by others within minutes.
- Converged technology stack: Rendering, audio playback, and input handling already have mature, general-purpose solutions in the browser, so developers do not have to rebuild them from the ground up.
- Small iteration scope: Changing a value, a state machine, or a feedback effect is enough to publish a new build.
For idea validation, “is it playable” matters more than “is it polished.” The goal of an early prototype is not a finished product but getting the core loop running.
3. Test Method: Breaking Development into Four Stages
3.1 Define Gameplay and Reference Targets
The test began by choosing reference targets: one was a simplified recreation of a classic shooter map, emphasizing cover, engagement zones, and movement rhythm; the other was a fan-made attempt at an action game, emphasizing state transitions among movement, dodging, and light/heavy attacks. The practical conclusion is that when the gameplay and reference target are specific enough, generative tools can achieve a close visual and structural resemblance; once complex combos, precise hit detection, and animation blending are involved, quality degrades quickly.
Therefore, write requirements as testable specifications rather than vague descriptions:
Goal: top-down shooter prototypeCore loop: move -> acquire target -> shoot -> pick up supplies -> repeatConstraints: 3 enemy types, 1 map, hit feedback must be visibleAcceptance: player achieves at least 5 kills within 60 seconds
3.2 Code Generation and Engineering Structure Constraints
Letting the model produce “one giant file” is a common mistake. A safer approach is to constrain the directory layout and module boundaries first, then generate block by block. An example structure:
/src/core # game loop, clock, input abstraction/entities # player, enemies, bullets/systems # collision, spawning, scoring/assets # texture and audio placeholders/ui # HUD and results screen
The main loop can be expressed as minimal pseudocode:
function frame(dt) {input.poll();player.update(dt);enemies.forEach(e => e.update(dt));resolveCollisions();renderer.draw();requestAnimationFrame(frame);}
Under engineering constraints, AI is better suited to generating replaceable module implementations than to making architecture decisions for you.
3.3 Asset Generation: A Pipeline from Zero to Usable
In the test, models, textures, and sounds were all produced generatively, which raised two engineering issues: consistency and size.
- Consistency: Textures generated multiple times under the same style tend to drift, so fixed prompt templates and random seeds are needed, along with a naming convention.
- Size and loading: Textures must be compressed and resolution-controlled, and audio must be trimmed into short samples to avoid slow first-screen loading.
An example asset specification:
Textures: 512x512, unified color tone, named tile_ground_01Audio: 0.1–0.5s short samples, unified sample rate, named sfx_hit_01Models: low-poly, unified orientation and origin
3.4 Debugging and Experience Calibration
Common issues in AI-generated code include state leakage, collision tunneling, input jitter, and unstable frame rates. Automating acceptance is recommended:
- Replay fixed input sequences to check whether the character moves as expected;
- Overlay collision shapes visually to locate detection deviations;
- Record frame time distributions and focus on long-tail stutters rather than average frame rate.
4. Why Costs Can Be Pushed Extremely Low
The low cost does not come from a single “magic tool” but from structural savings:
- Changed labor structure: One person serves as designer, programmer, and placeholder artist, reducing communication and coordination overhead.
- Lower marginal cost of assets: Placeholder assets are generated rather than purchased or outsourced, eliminating procurement and outsourcing cycles.
- Lower trial-and-error cost: A failed prototype costs only a small amount of time and API usage fees.
- Shorter distribution and feedback loop: A link is the release, and feedback drives the next iteration.
Using cloud-based generation and hosting typically involves general-purpose categories such as object storage (for static assets), a content delivery network (to accelerate loading), and logging and monitoring/alerting services (to locate production issues). These are industry-standard capabilities and do not constitute any vendor-specific conclusion.
5. Boundaries and Risks: What AI Still Does Poorly
- Deep gameplay systems: Economy systems, level pacing curves, and difficulty balancing still rely heavily on design experience.
- Precise game feel: Input buffering, cancel windows, and hit stun in action games require repeated tuning.
- Long-term maintainability: Generated code without standards can easily form structures that are hard to evolve.
- Copyright and compliance: If a reference target is protected, it may only be used for personal learning and validation and must not be published commercially.
6. A Practical Checklist for Developers
- Validate playability first, then polish the presentation layer;
- Replace natural-language wishes with specification-style prompts;
- Fix the engineering skeleton and let AI fill in modules rather than define the architecture;
- Establish asset naming and compression standards to control loading size;
- Use automated replay and frame time monitoring as acceptance gates;
- Clarify the boundary between prototype and product, and avoid mistaking a demo for a release-ready work.
7. Conclusion
The real value of this test is not the gimmick of “making a game for 20 RMB,” but the validation of a new development order: first turn an idea into something playable at the lowest possible cost, then reinforce it step by step with engineering practices. For developers, this means a much lower barrier to validating ideas; for teams, it means more aggressive trial and error during the prototype stage. AI will not replace producers, but it will redistribute producers’ time—from repetitive labor toward judgment, trade-offs, and experience design.
