AI Game Development Tested: Building a Playable Prototype for About 20 Yuan

    This article reports on a hands-on test of using generative AI to build browser-based game prototypes. It explains why the web is an effective minimal delivery target, what AI can and cannot reproduce in gameplay, and a reusable four-stage workflow covering gameplay definition, structured prompting, multimodal asset consistency, and testing and release. It also breaks down where the roughly 20-yuan cost goes, outlines capability limits and common pitfalls, and concludes that while implementation barriers are falling, design judgment matters more than ever.

    1. Introduction: The Barrier to Game Development Is Being Redefined

    Traditionally, making a game means a professional engine, a team, a timeline of months or even years, and a substantial budget. The recent maturing of generative AI is compressing that chain dramatically: one person, a natural-language description, and a few hours to tens of hours of generation and debugging can produce a playable prototype that runs directly in a browser. Based on a personal hands-on test, this article tries to answer three questions: where are the limits of AI game generation; how can an ordinary developer turn an idea into something playable; and how low can the cost actually go.

    Note that this article does not review or recommend any specific third-party product. Instead, it abstracts the phenomenon into a general technical question: how to build a small interactive application from zero to one at an extremely low marginal cost, using intelligent coding and multimodal generation.

    2. Why the Web Is the Minimal Viable Vehicle

    Before discussing AI, you need to pick the right technology stack. For validating an idea, the web has several hard-to-replace advantages:

    • Zero installation, zero distribution friction: Generate a link and anyone can play; the feedback loop is very short.
    • A converged technology stack: Rendering, audio playback, and input handling all have mature browser standard interfaces, so AI-generated code tends to be more accurate.
    • Naturally cross-platform: Accessible from both desktop and mobile browsers, with no need to build separately for multiple platforms.
    • Low iteration cost: Refresh to apply changes, with no packaging, signing, or store review process.

    The technology choices can be very restrained: use native browser graphics interfaces or a lightweight wrapper for rendering, start with simple axis-aligned bounding boxes for physics and collision, and use a finite state machine for state management to cover most prototype needs. A minimal skeleton looks roughly like this:

    1. // Minimal game loop example
    2. const canvas = document.getElementById('game');
    3. const ctx = canvas.getContext('2d');
    4. let state = 'READY'; // READY / PLAYING / OVER
    5. let player = { x: 0, y: 0, hp: 100 };
    6. function loop(ts) {
    7. const dt = Math.min((ts - last) / 1000, 0.05); // Cap the per-frame step to avoid tunneling after a stall
    8. update(dt);
    9. render(ctx);
    10. requestAnimationFrame(loop);
    11. }
    12. requestAnimationFrame(loop);

    This code is not complex in itself, but its value is that it is the part of AI-generated output that is most reliably correct. What really determines the quality of the result is gameplay definition and asset consistency.

    3. Test Observations: AI Is Good Enough at Surface Fidelity, Still Limited in Depth

    The author played a batch of AI-generated web mini-games, including a battle scene modeled on a classic shooter map and a fan work referencing a well-known action game. The conclusions come down to three points:

    1. When the reference is clear, AI can reproduce surface features with high fidelity. Scene layout, material appearance, the rhythm of firefights, movement and dodging, and the distinction between light and heavy attacks are all observable and describable, and they are completed to a high degree.
    2. Complex mechanics degrade quickly. Combo chaining, precise hit frames, enemy behavior trees, and level pacing curves all involve deep system design, and generated results often stay at a schematic level.
    3. Whether gameplay works does not depend on complexity. Experience from the Flash era and indie games has repeatedly shown that fun comes from clear rules, immediate feedback, and a reasonable difficulty curve, not from piling on technology.

    This yields a practical principle: treat AI as an “implementation-layer accelerator,” not a “design-layer decision maker.” Convergence of the design must be done by a human; AI translates the converged description into runnable code and usable assets.

    4. A Reusable Four-Stage Workflow

    Stage 1: Gameplay Definition (Human-Led, No AI)

    Before writing any prompt, use one page to spell out five things: the core action verbs (move/aim/dodge/build), win and loss conditions, single-session duration, failure penalty, and the one memorable hook. The output of this step is not a document but verifiable acceptance criteria. For example: “The player collects 3 targets and reaches the exit within 60 seconds; being hit 3 times means failure.”

    Stage 2: Structured Prompting (Translate Design into Constraints)

    A vague “make a shooter game” almost inevitably produces a mediocre result. An effective prompt should include a role, technology-stack constraints, a system list, numeric ranges, and prohibitions:

    1. Role: Senior front-end game developer
    2. Technical constraints: Single-file HTML + native Canvas, no external dependencies
    3. System list: Player movement, mouse aiming, enemy spawning, hit detection, health, results screen
    4. Numeric ranges: Player speed 200~260 px/s, enemy spawn interval 1.2~2.0s
    5. Prohibitions: No networking, no accounts, no complex physics
    6. Output requirement: First give the module breakdown, then the complete runnable code

    The core purpose of a structured prompt is to turn “aesthetic judgment” into “verifiable constraints,” greatly reducing the number of rework cycles.

    Stage 3: Multimodal Asset Generation and Consistency Management

    If models, textures, and sound effects are generated separately, the styles can easily become disjointed. A more robust engineering approach is to first define a style baseline description (color palette, lighting direction, material roughness, sampling style), then have all asset prompts reference the same baseline; establish naming and directory conventions for generated results to make replacement and rollback easy. Assets should be unified to the target resolution and color space to avoid visual quality loss from runtime scaling.

    Stage 4: Testing, Performance, and Release

    Build a minimal test set at the prototype stage: is collision correct, can boundaries be tunneled through, is the frame rate acceptable on low-end devices, and does audio need to be triggered by a user gesture. For performance, prioritize controlling draw calls and asset size, load textures on demand, and decouple logic updates from rendering. For release, static output can be hosted on object storage, paired with logging services and monitoring alerts to observe availability; if multiplayer state synchronization is needed later, introduce a message queue or containerized services rather than making the architecture heavy from the start.

    5. Cost Structure: Where the 20 Yuan Goes

    Pushing total cost extremely low does not rely on any single capability but on a change in cost structure:

    Cost Item Traditional Model AI-Assisted Model
    Labor Division of labor across a team One person leading
    Engine and licensing Commercial engine/team plan Native browser capabilities
    Assets Outsourced or purchased Generated + human curation
    Distribution Package and publish to stores A link to play instantly
    Trial and error Long cycles, high cost Minute-level rollback

    In the author’s test, the vast majority of spending was model calls and a small amount of asset generation, amounting to roughly twenty yuan; while the hundreds-of-dollars-level spending seen in public cases corresponds to longer generation times and a more complete asset system. This shows that cost is almost entirely determined by “number of generation rounds × cost per round,” so improving prompt quality and reducing wasted rounds is the most effective way to save money.

    6. Capability Limits and Common Pitfalls

    • Do not expect it to be right on the first try. Treat AI output as a draft and budget for 2 to 3 rounds of refactoring.
    • Do not let AI make architecture decisions. Save systems, network synchronization, and data validation should be given clear solutions by a human.
    • Watch out for code that “looks like it runs.” Generated code often lacks exception handling and resource cleanup, which must be filled in manually.
    • Address copyright and compliance upfront. A reference object can only serve as gameplay inspiration; assets and naming must be original, avoiding direct reuse of protected content.
    • Prioritize playability validation over visuals. Use color blocks and simple geometry to validate the feel first, then replace with final assets.

    7. Conclusion

    The most valuable conclusion from this test is not “game developers will lose their jobs,” but rather: the barrier at the implementation layer is collapsing rapidly, while the weight of the design layer is being significantly amplified. When the cost of turning an idea into a playable prototype drops to the price of a meal, the truly scarce resource becomes judgment—judging what is fun, what should be cut, and what is worth continued investment. For developers, the most rational strategy now is to incorporate AI into the existing engineering workflow, use it to compress repetitive labor, and give the saved time back to the gameplay itself.