AI Game Development Test: Building a Playable Prototype for About 20 Yuan
This article reports a hands-on test of using AI coding tools to build a browser game, where models, sound effects, and textures were generated from scratch in roughly eight hours at a total API and compute cost of about 20 Yuan. It breaks down how AI compresses asset, labor, and tooling costs while leaving distribution largely unchanged, then walks through a reusable six-step workflow for turning an idea into a playable prototype. It also outlines the current limitations around long-form consistency, maintainability, licensing, and gameplay innovation, and explains why validating an idea has become cheap while judgment and polish remain scarce.
Background: Testing Whether Low-Cost Game Development Is Feasible
Recently, an overseas engineer used an AI coding tool to generate a browser game. The models, sound effects, and textures were all produced from scratch by AI. The run took about eight hours and cost several hundred dollars in total. The story drew attention not because the visuals rivaled a commercial blockbuster, but because it rewrote the cost structure of making a game: art outsourcing, programming schedules, engine licensing, and lengthy integration were compressed into a single human-AI generation process.
I decided to run my own test. The goal was not commercial quality, but to see whether an idea could become a prototype that anyone could play by clicking a link within a few hours. The final number came in lower than expected—about 20 Yuan in API calls and compute. That figure does not represent the real cost of professional game development, but it shows one thing: the marginal cost of validating an idea is rapidly approaching zero.
One caveat is worth clarifying first: browser games are not in the same category as large-scale console or PC titles. Their value lies not in scale but in distribution and validation efficiency—no installation, playable from a single link, and feedback cycles measured in minutes. For indie developers, teaching scenarios, and internal proofs of concept, this format fits the need for fast trial and error.
Cost Breakdown: Where the Money Actually Goes
Traditional game development costs fall into four categories: labor, assets, tools, and distribution. AI significantly compresses the first three and leaves the fourth almost unchanged.
1) Asset costs: from procurement to generation. Textures, low-poly models, ambient sounds, and background music once required outsourcing or licensed purchases. Now they can be produced in batches with multimodal generation models and then filtered by hand. The real cost shifts from production to selection and correction.
2) Labor costs: from division of labor to one person wearing many hats. The boundaries between programming, art, and design blur, and one person can play all three roles—but that person needs basic aesthetic judgment and engineering common sense.
3) Tool costs: engine licensing and cloud resources are negligible at the small-prototype stage. Only when persistent saves, leaderboards, or multiplayer synchronization are needed do general cloud categories such as object storage, databases, and message queues come in, with costs growing linearly with traffic.
4) Time costs: the most underestimated item. Generation is fast, but making generated output usable is slow. Debugging, alignment, and fixing clipping and frame-rate jitter often take up more than half the total time.
A Reusable Workflow: Six Steps to a Playable Prototype
Step 1: Compress the idea into one sentence. Instead of “make an open world,” write “the player picks one of three fixed routes, avoids periodically moving lit areas, and survives for sixty seconds.” The more specific the constraints, the better the generation quality.
Step 2: Choose the minimal tech stack. For a browser build, favor a single-page app with one rendering canvas, and use a mature open-source solution for physics and collision. Avoid heavy frameworks that require a build toolchain. A sketch of the structure:
const config = {canvas: { width: 960, height: 540 },loop: { fixedStep: 1 / 60, maxCatchUp: 3 },entities: { player: 1, hazards: 8, pickups: 4 }};function tick(state, dt) {state.player.x += state.input.dx * state.player.speed * dt;for (const h of state.hazards) h.update(dt);return checkCollision(state) ? 'gameover' : 'running';}
Step 3: Layer the prompts. Break requirements into four layers—“world rules,” “character abilities,” “failure conditions,” and “visual tone”—and describe them separately. This is far more stable than piling on adjectives at once. Change only one layer at a time to make problems easier to locate.
Step 4: Generate and normalize assets. Keep resolution, lighting direction, and color space consistent; otherwise textures from different batches will look visibly disjointed. Audio should use a unified sample rate with loudness normalization.
Step 5: Validate performance and compatibility. On low-end devices, keep only one light source and a limited number of particles at a time; apply dynamic downscaling to render resolution; use a fixed time step to avoid physics inconsistencies across different refresh rates.
function resizeToFit(devicePixelRatio) {const cap = 1.5;return Math.min(devicePixelRatio, cap);}
Step 6: Distribute and observe. Static assets can be hosted on general object storage or a static hosting service, paired with logging and monitoring alerts to track load time, error rate, and frame-rate distribution, using data to decide the next iteration.
Limits You Have to Accept
First, long-horizon consistency is still weak. Generation models are good at fragments but poor at sustaining hours of narrative and numerical balance. Second, maintainability is poor. Generated code often lacks abstraction layers, so any requirement change forces a rewrite. Third, copyright and compliance risk require human backstops; asset sources and licenses must be traceable. Fourth, gameplay innovation cannot be generated—it still depends on the designer’s judgment.
Conclusion
AI has driven the cost of implementation extremely low while raising the value of judgment extremely high. The 20-Yuan test really means that the barrier to validating an idea has disappeared, while the ability to filter ideas, polish game feel, and control quality has become the new scarce resource. For individuals, this is a low-cost trial-and-error workflow; for teams, it is a methodology that compresses the proof-of-concept cycle from weeks to hours. Built on general compute, storage, and monitoring capabilities from cloud services such as Baidu AI Cloud, this workflow can be further standardized to make “think it, play it” the norm.
