Building Games With AI: How Development Costs Dropped to 20 Yuan

    This article examines how AI coding tools and natural-language prompts are lowering the cost of game development to roughly 20 yuan, mostly in compute and subscription usage. It explains why a browser-based format is the fastest way to validate a gameplay idea, what AI-generated games can and cannot do based on hands-on testing, and a reusable four-stage workflow: compressing an idea into an executable spec, generating in layers, controlling assets and costs, and using observability instead of guesswork. A cost breakdown, current limitations, and practical takeaways for developers are included.

    1. Why Low-Cost Game Development Suddenly Works

    Mention game development in the past, and what comes to mind is professional engines, multi-person collaboration, schedules measured in months or even years, and a long chain of coordination across art, audio, and design roles. This perception is not a bias; it was shaped by the tooling and the cost of collaboration.

    Something has clearly changed in the last two years. With intelligent coding tools and natural-language descriptions, an ordinary person with basic aesthetic judgment and a sense for gameplay can produce a runnable, playable interactive prototype in a short time. One engineer used a short prompt to let a model run continuously for hours and produced a fairly polished browser-based shooter, with the model, audio, and textures all built from scratch through generation, at a total cost of a few hundred dollars. That number is worth discussing not because it is “cheap,” but because it lowers the barrier to “validating whether a gameplay idea is fun” from a team-level investment to an individual-level one.

    The persuasive power of such cases lies not in the visuals. What has really changed is the length of the feedback loop: validating an idea used to require project approval, scheduling, and resource coordination; now it takes an afternoon.

    2. Why Start With the Browser: Deferring Technical Debt Until After Validation

    Before the implementation details, a word on the format choice. Browser games have several natural engineering advantages:

    • Zero-install distribution: The output is a link. Anyone can click and play, so the cost of obtaining playtest samples is extremely low.
    • Instant iteration: Static assets plus frontend logic mean publishing is updating, with no version fragmentation.
    • A converged tech stack: Rendering, input handling, and audio playback all have mature general-purpose solutions, so you do not have to solve low-level problems first.
    • Low cost of failure: When a prototype is rejected, the sunk cost is one conversation and a small amount of compute.

    For developers, the most important point is this: you do not have to get bogged down in heavy engineering knowledge first, and can focus on the only question that matters, whether the gameplay holds up. This is a classic “falsify first, then invest” strategy.

    3. Hands-On Observations: What AI-Generated Games Can and Cannot Do

    Before starting, I systematically played several AI-generated browser mini-games on the market, including a competitive shooter modeled on a classic multiplayer map and a fan-made derivative built on a well-known action RPG. The observations boil down to three points:

    1) With a clear reference, the resemblance is high. As long as the gameplay framework and visual reference are clear enough, the model can fill in scene assets, interaction logic, character behavior, and basic mechanics at fairly high quality. Elements that can be described explicitly, such as container cover, pipe structures, and the rhythm of firefights, are often reproduced better than expected.

    2) Without a reference, design quality decays quickly. Once original level pacing, numerical balance, and the complexity of skill combos are involved, the output degrades to “runs but is not fun.” Complex action detection, multi-stage combos, and precise hit feedback are still hard to get right in one pass.

    3) The core of a good game is not complexity, but fun. This was proven repeatedly in the era of early Flash mini-games and indie titles. Technical expressiveness and playability are two separate curves: the former can be raised quickly with generative tools, while the latter still depends on design judgment and repeated tuning.

    So the rational conclusion is: treat AI as an “implementation accelerator,” not a “design replacement.”

    4. A Reusable Four-Stage Workflow

    Stage 1: Compress the Idea Into an Executable Checklist

    Prompt quality determines generation quality. The effective approach is not to describe “I want a fun shooter,” but to break the gameplay into structured items:

    1. Genre: top-down shooter, 90 seconds per round
    2. Core loop: enter area -> collect resources -> engage patrol units -> extract and settle score
    3. Player abilities: move, aim, shoot, reload, dash (1.5-second cooldown)
    4. Enemies: three-state machine (patrol / alert / chase)
    5. Win/loss: successful extraction scores; death clears this round's resources
    6. Visual constraints: low-poly, cool color palette, single directional light

    The closer the checklist is to an “acceptance-ready spec,” the lower the rework rate.

    Stage 2: Generate in Layers, Not All at Once

    Producing a complete project in one shot almost inevitably spirals out of control after the third iteration. A more stable approach is layering:

    1. Skeleton layer: render loop, input mapping, scene switching, asset loading.
    2. Mechanics layer: state machines, collision, damage resolution, scoring.
    3. Presentation layer: materials, sound effects, particles, UI feedback.
    4. Tuning layer: numerical curves, difficulty pacing, feel parameters.

    A minimal runnable loop looks like this; the key is decoupling update from render so the implementation can be swapped later:

    1. // Fixed-step update + variable-rate render, to avoid physics drifting with frame rate
    2. const STEP = 1 / 60;
    3. let acc = 0, last = performance.now();
    4. function frame(now) {
    5. acc += Math.min((now - last) / 1000, 0.25);
    6. last = now;
    7. while (acc >= STEP) {
    8. update(STEP); // logic: input, state machine, collision, scoring
    9. acc -= STEP;
    10. }
    11. render(acc / STEP); // presentation: interpolated drawing for smooth visuals
    12. requestAnimationFrame(frame);
    13. }

    Stage 3: Structured Control of Assets and Costs

    Cost overruns usually come not from many generation calls, but from a lack of constraints. A few actionable principles:

    • Style first: Lock in one low-complexity style (low-poly, pixel, silhouette) first; consistency and success rate are both higher.
    • Asset reuse: Reuse the same textures and sound effects across scenes to reduce generation calls.
    • Resolution and format constraints: Fix texture sizes and audio sample rates at the prompt stage to avoid rework later.
    • Roll back on failure: Keep every runnable version, and avoid stacking on top of a bad one.

    If the prototype needs to be distributed externally, static output is well suited to object storage with a content delivery network; if leaderboards, saves, and similar capabilities are added later, a lightweight backend and a managed database are enough, with no need to build a complex architecture upfront.

    Stage 4: Replace “It Feels Off” With Observability

    The most overlooked thing in the prototype stage is measurement. Instrument from day one: frame-time distribution, round duration, death-location heatmaps, resource pickup paths. Collecting logs centrally and adding monitoring alerts turns a vague judgment like “the feel is wrong” into actionable conclusions such as “frame time in one segment exceeds the threshold” or “the death rate in one area is abnormal.”

    5. Cost Breakdown: Where the 20 Yuan Goes

    Pushing total cost extremely low usually comes from three structural savings, not a single technical miracle:

    Cost item Traditional approach Generative prototype
    Art assets Outsourcing or an in-house pipeline Batch prompt generation plus reuse
    Levels and logic Human scheduling Layered generation plus manual correction
    Distribution and hosting Packaging and channel processes Static hosting, distribution by link
    Trial-and-error cost Project-level investment Single-conversation-level investment

    The real “20 yuan” is mostly the marginal consumption of compute and subscriptions. This also suggests an engineering judgment: when validation costs are low enough, shift the budget from “polishing one solution” to “trying several solutions.”

    6. Boundaries and Risks

    The current capability boundaries of generative tools must be clear:

    • Complex feel is hard to generate automatically: Hit feel, camera shake, and hit-stop need repeated manual tuning.
    • Numerical balance needs real player data: The model’s initial numbers are only a starting point.
    • Originality risk: Heavily referencing existing works may raise rights issues, so replace them with original settings at the prototype stage.
    • Maintainability risk: Generated code structure may be inconsistent, so it is advisable for developers to hand-write the skeleton layer and enforce standards.

    7. Conclusion

    AI has not made game developers collectively worthless; it has changed the distribution of value: the marginal cost of implementation has dropped sharply, while the weight of design judgment, feel tuning, and experience tradeoffs has risen significantly. The practical advice for developers is direct: use the browser format for the fastest validation, use structured checklists to constrain generation, use a layered strategy to control complexity, and use observable data to drive tuning. When the cost of trial and error is low enough, real competitiveness returns to the simplest question of all: is it actually fun?