Building Games With AI: How I Cut Development Costs to About 20 Yuan

    This article documents a hands-on test of using AI coding tools to build a browser-based shooter prototype and drive development costs down to roughly 20 yuan. It explains why the web is an effective validation platform, what AI can and cannot achieve today, how to structure a minimal budget, and a six-step workflow from a one-sentence gameplay contract to a playable build. It also covers common pitfalls, performance baselines, and how to scale a validated prototype with general cloud capabilities. Readers will get a practical, low-cost approach to turning a game idea into something playable.

    1. Introduction: The Barrier to Making Games Has Been Redefined

    Over the past few years, a subgenre of shooters built around a “scavenge, engage, extract” loop has grown quickly in popularity. Experiences that once depended on high-end clients, massive art assets, and long development cycles are now showing up in the browser. In one case, an engineer used a short natural-language description and ran an AI coding tool continuously for several hours to produce a playable web-based shooter prototype with realistic lighting and high-resolution materials. Every asset was generated from scratch, at an estimated cost of a few hundred US dollars.

    What makes this worth paying attention to is not “AI replacing someone,” but a shift in development economics: the path from an idea in your head to a runnable validation has been compressed dramatically. So the question becomes—can an ordinary developer also turn an idea into something playable? This article uses a hands-on test as its thread, offers a practical answer, and pushes the cost down further to around 20 yuan.

    2. Why Start With the Web as the Validation Platform

    When people think about game development, the first things that come to mind are professional engines, team collaboration, and long schedules. These toolchains are irreplaceable in production projects, but they are often too heavy for the stage of “validating whether a gameplay idea holds up.”

    The web format is well suited to early validation:

    • Zero installation, zero distribution friction: Once generated, a single link lets others play, giving you the shortest feedback loop.
    • A relatively gentle technical barrier: You don’t need to master complex project structures and asset pipelines first, so you can focus on rules and game feel.
    • Instant iteration: Refresh and you have a new version, ideal for rapid trial and error.
    • Cross-platform reach: Accessible from both desktop and mobile browsers, giving you a more realistic sample.

    It’s important to be clear about the limits: the web is constrained in compute, memory, and handling large scenes, so it isn’t suited to heavy, large-scale final products. But as a “gameplay probe,” it is sharp enough.

    3. Hands-On Observations: AI Achieves “Surface Resemblance” Today, but “Fun” Is the Hard Part

    Before starting the build, I play-tested several AI-generated web mini-games, including firefight scenes modeled on classic shooter maps and fan works based on well-known action characters. The observations boil down to three points:

    1. When the reference is clear, the resemblance is high. Scene composition, interaction logic, character movement, and basic mechanics can be reproduced fairly completely.
    2. It degrades quickly as complexity rises. Combos, precise hit detection, complex state machines, and anything beyond “basically playable” often fail to match the original.
    3. Fun is unrelated to complexity. A narrative can stand on text and dialogue alone; satisfying combat can stand on visual effects, hit-stop, and scene feedback alone.

    This leads to a methodological premise: Don’t spend your budget and prompts on “more complexity”—invest them in “whether the feedback feels good.”

    4. Pushing the Cost to 20 Yuan: Structuring the Budget

    The key to very low cost isn’t “spending less,” but “spending on the right things.” Here is a reusable allocation:

    • AI coding tool subscription/usage: At the minimum usable tier, about 15 yuan.
    • Asset generation and image hosting/object storage: Using a general object storage free tier or very low traffic fees, about 3 yuan.
    • Domain and debugging miscellany: Using the platform’s default test domain, about 2 yuan.

    Ways to save on the technical side:

    • Prioritize procedural generation and assembly from basic geometry to reduce the need for high-precision textures.
    • Use minimal synthesis or single-note samples for audio to avoid copyright and file-size issues.
    • Separate logic from data, drive values with config tables, and make tuning essentially free.

    5. An Executable Workflow: Six Steps From Zero to Playable

    Step 1: A One-Sentence Gameplay Contract

    First, write the core loop in one sentence, for example: “Enter an area → scavenge resources → engage patrolling units → reach the extraction point.” This sentence is the anchor for all subsequent prompts and acceptance criteria.

    Step 2: A Structured Prompt

    Break the vague idea into modules and hand them to the AI coding tool. Example:

    1. Role: Senior web game developer
    2. Goal: A runnable prototype in a single file
    3. Core loop: Scavenge -> Engage -> Extract
    4. Constraints:
    5. - Top-down view, keyboard movement, mouse aiming
    6. - Enemies have two states: patrol and chase
    7. - On hit, provide a white flash and hit-stop feedback
    8. Output: Complete code + run instructions

    Step 3: Get the “Gray Box Prototype” Running First

    Use only color blocks and basic models to confirm the loop of movement, aiming, hit detection, and win/loss judgment. No art investment is allowed at this stage.

    Step 4: Work on the Feedback Layer (the Most Critical Step)

    Fun often comes from feedback rather than content volume:

    • On hit: white flash, slight hit-stop, short sound effect.
    • On taking damage: red tint at screen edges, slight camera shake.
    • On successful extraction: visual effects and sound reinforce the sense of ceremony.

    Step 5: Performance and Compatibility Baseline

    • Control draw calls and texture sizes; reuse materials where possible.
    • Manage bullets and effects with object pools to avoid frequent creation and destruction.
    • Verify frame rate and touch usability on low-end mobile browsers.

    Step 6: Small-Sample Playtesting and Single-Point Iteration

    Change only one variable at a time (such as enemy movement speed or extraction time), and collect qualitative feedback on “do you want to play again,” avoiding changing many things at once, which makes attribution impossible.

    6. Common Pitfalls and How to Avoid Them

    • Overly large prompts: Asking for dozens of systems at once yields half-finished work everywhere. Break it into milestones instead.
    • Art too early: Piling on materials before the gameplay works creates huge sunk costs.
    • Ignoring hit-detection consistency: A mismatch between visuals and detection destroys trust in the game feel.
    • No monitoring or logging: Production errors become impossible to locate. It’s advisable to integrate a general logging service and monitoring alerts, with basic observation of load-failure rate, average frame rate, and crash rate.
    • Asset compliance risk: All models, sound effects, and textures should be generated or self-made; avoid directly reusing copyright-protected resources.

    7. Going Further: From a Toy to Something Operable

    Once the prototype is validated and you want to run it at a small scale, you can combine general cloud capabilities: object storage for static assets, a content delivery network to reduce load latency, a container platform to host match or leaderboard services, a message queue to smooth out leaderboard writes, and logging and monitoring for observability. Baidu AI Cloud is typically used in these scenarios to provide the general-purpose capabilities above, helping teams keep their focus on the gameplay itself.

    8. Conclusion: Producers Won’t Be Replaced, but the Way They Work Will Change

    The test shows that AI has pushed the cost of “implementation” extremely low, but it hasn’t replaced the person who judges “what is fun.” The truly scarce abilities are defining the core loop, designing feedback, making trade-offs, and validating. For developers, the most practical path is: use the web as a probe, set a contract with one sentence, trade the feedback layer for retention, and drive iteration with data and logs. When validation costs drop to the 20-yuan level, creative failure is no longer expensive—and that is the biggest dividend of this wave of technological change.