AI Game Development on a Budget: Building a Playable Web Game for About 20 RMB

    This article reports a hands-on test of using AI coding tools to build a complete, playable web game for roughly 20 RMB. It explains why the web is the best medium for low-cost idea validation, summarizes what AI-generated browser games can and cannot do today, and walks through five cost-control steps: structured prompts as design documents, replaceable generated assets, feedback-first interaction tuning, performance budgets for mobile browsers, and basic cloud-based hosting and observability. The key takeaway is that AI makes implementation cheap and shifts the remaining human effort toward defining what is actually fun.

    1. Background: A Web Game That Did Not Feel AI-Made

    A recent high-fidelity browser game drew attention because its lighting, materials, and scene detail looked like the work of a mature commercial studio. According to its creator, it was not the product of months of work by a traditional team. Instead, an AI coding tool ran for about eight hours on minimal prompts and produced it directly, with models, audio, and textures all generated from scratch, at a total cost of just over 500 USD.

    The interesting part is not whether AI can build games. It is that this rewrote the cost structure of game development: art assets, base frameworks, and interaction logic, historically the most labor-intensive parts, were compressed into compute and time. That raises an obvious question: can an ordinary developer turn an idea into a playable build on a tiny budget? The author of this article says yes, having completed a fully playable web game for about 20 RMB.

    2. Why Start With the Web

    When people think of game development, they usually picture specialized engines, full teams, and long schedules. For validating whether an idea works, those upfront costs are the biggest obstacle.

    The web format has clear advantages for developers:

    • No installation and no distribution friction; once generated, a single link lets anyone try it.
    • A very short feedback loop; whether the gameplay works can be settled in minutes.
    • A low technical barrier, so you are not held up by complex engine knowledge and can focus on the idea and the gameplay.

    Put differently, a web game is not a compromise for small projects. It is the best medium for low-cost iteration, because it decouples the cost of building a game from the cost of validating an idea, and the latter is what should be compressed first.

    3. Hands-On Observations: What AI Can Do Today

    The author tried several AI-generated browser mini-games, including a browser shooter modeled on a classic shooter map and an action fan game. The observations reduce to three points:

    1. Strong at surface resemblance. When the reference and the gameplay goal are clear, AI reproduces scene assets, interaction logic, player actions, and core mechanics reasonably well.
    2. The ceiling is set by the reference. Complex move sets, precise action hit detection, and multi-layered combat feedback often fall short of the original.
    3. Fun is unrelated to complexity. Quality is decided not by complexity but by pacing, feedback, and emotional expression. A moving story can rely on text and dialogue alone, and a satisfying fight can rely on visual effects and scene feedback alone.

    These three points are the basis for the method that follows: spend the budget on perceivable fun, not imperceptible complexity.

    4. Method: Five Steps to Push Costs Down

    4.1 Define the Gameplay First; the Prompt Is the Design Document

    The first principle of low-cost development is to narrow the scope. Start with a one-sentence gameplay description, then specify the win condition, the lose condition, the core controls, and the length of a single session. The prompt should not be a vague “make a fun game” but a structured description:

    1. Goal: a browser mini-game with 3-minute sessions
    2. Core controls: move, dodge, light attack, heavy attack
    3. Win/lose: defeat 3 waves of enemies to win; HP reaching zero loses
    4. Feedback: slight screen shake + light flash + sound effect on hit
    5. Constraints: frontend only, no external asset dependencies, playable on mobile

    A structured prompt is effectively a design document moved to the front, which significantly reduces rework and wasted compute.

    4.2 Asset Generation: A Pipeline That Starts From Zero

    Models, textures, and audio can all come from generative capabilities, but you need to build in replaceability as an engineering habit: abstract the asset directory and loading logic behind a unified interface so assets can be swapped and iterated later.

    1. // Asset abstraction: get the logic working first, then swap in higher-quality assets
    2. const assets = {
    3. player: { model: 'player.glb', texture: 'player.png' },
    4. enemy: { model: 'enemy.glb', texture: 'enemy.png' },
    5. sfx: { hit: 'hit.wav', bgm: 'loop.wav' }
    6. };

    4.3 Interaction and Mechanics: Get the Feel Loop Right First

    Game feel comes from three kinds of immediate feedback: visual (light effects, screen shake), audio (sound effects), and numeric (knockback, hit stun). These are far cheaper to implement than complex animation but contribute the most to whether the game is fun. Build a gray-box version with feedback only and no art first, confirm the feel, then layer assets on top.

    4.4 Performance and Compatibility: Hard Constraints of the Web

    Browser environments vary widely, so set a budget early: limit polygons per scene, texture size, and concurrent audio; define a degradation strategy for mobile. Keep the core loop decoupled from rendering so the logic frame stays stable:

    1. let acc = 0, last = performance.now();
    2. function loop(now) {
    3. acc += now - last; last = now;
    4. while (acc >= 16.67) { update(16.67); acc -= 16.67; } // fixed-step logic
    5. render();
    6. requestAnimationFrame(loop);
    7. }

    4.5 Release and Operations: Keep It Observable Even on a Tiny Budget

    Even with a minimal budget, connect standard cloud capabilities for basic governance: host static assets on object storage, use a content delivery network to reduce latency, and use logging and monitoring with alerts to locate production issues. These are common, general-purpose cloud service categories that you take as needed; there is no need to over-engineer at the prototype stage.

    5. Cost Breakdown: Where the Money Goes and Where It Is Saved

    • Saved: the labor for art assets and base frameworks, replaced by generative capabilities.
    • Saved: iteration cost, since the web format cuts the validation cycle from weeks to hours.
    • Spent: compute and iteration time, the only resource that requires ongoing investment.
    • Not compressible: gameplay design and game-feel tuning, which still depend on human judgment.

    The roughly 20 RMB test shows that once assets and frameworks are automated, the marginal cost falls mainly on compute, while human value concentrates on defining what is fun.

    6. Conclusion and Action Checklist

    AI has not made game developers redundant. It has made implementation cheap and made design more important. The minimal action checklist for developers:

    1. Write the gameplay and win/lose conditions in one sentence.
    2. Replace vague requirements with structured prompts.
    3. Validate the feel with a gray box first, then add assets.
    4. Set a performance budget and a degradation strategy early.
    5. Connect general-purpose cloud capabilities for release and observability.
    6. Concentrate the budget on feedback and emotional expression.

    When complexity is no longer the barrier, whoever validates ideas faster and judges fun more accurately captures the benefits of this round of low-cost development.