AI Game Development Test: Building a Browser FPS Prototype for About 20 Yuan
This article reports on a hands-on test of using AI coding tools to build a browser-based tactical shooter prototype, reducing cash costs to roughly 20 yuan. It explains why the web is a practical minimum viable platform, how to break a game idea into four layers that AI can reliably generate (gameplay rules, assets, logic modules, and playability checks), and where the real cost savings come from. It also covers the current capability boundary—AI handles surface-level reproduction well but not game feel—along with engineering practices and cost-control principles for low-budget prototyping.
1. Introduction: The Barrier to Making Games Has Been Redefined
One of the hottest gameplay directions in the shooter genre in recent years is the “search, fight, extract” loop, a design that traces back to earlier hardcore simulation shooters. Recently, an overseas engineer used an AI coding tool to generate a simulation-style shooter that runs in the browser. Its lighting and materials were good enough that people initially mistook it for a mainstream AAA title streamed from the cloud. In reality, every asset—models, sound effects, and textures—was generated from scratch by AI, at a total cost of around five hundred US dollars, most of it spent on compute and asset generation.
What makes this worth paying attention to is not “whether AI can produce visuals,” but that it compressed the two heaviest cost blocks in game development—art asset production and basic code implementation—into a range an individual can afford. That raises a practical question: can an ordinary creator with no professional engine experience turn an idea into a playable prototype that others can open with a link? Based on a hands-on test, this article breaks that question into executable engineering steps and offers a basis for judging cost control and quality trade-offs.
One conclusion needs to be stated up front: AI is currently good at surface-level reproduction—recreating scene assets, interaction logic, character behavior, and basic mechanics when the reference and gameplay goal are clear. It is not good at capturing the finer feel: tuning game feel, pacing design, difficulty curves, and emotional expression. Setting expectations in the right place is the prerequisite for low-cost development that does not go off the rails.
2. Why the Web Is the Minimum Viable Platform
When people think of game development, most first think of professional engines, team division of labor, and months-long schedules. But for validating whether an idea holds up, those costs are mismatched. The web format has advantages aimed at creators rather than players:
- Zero installation and zero distribution friction: once generated, a single link is enough to playtest, cutting the feedback cycle from weeks to hours.
- A converged tech stack: rendering, input handling, and audio playback all have mature general-purpose solutions, so AI-generated code is more accurate.
- Low iteration cost: change one line of logic and refresh to see the effect, which suits high-frequency trial and error.
- Small footprint: limited asset and scene scale forces the creator to focus on the core gameplay.
The trade-offs are equally clear: performance ceiling, input precision, complex physics, and large-scale scenes are all limited. So a web prototype is suited to validating “whether the gameplay is fun,” not “what the upper limit of visual fidelity is.”
3. Test Method: Breaking the Idea into Granularity AI Can Reliably Output
A common pattern observed in testing: most AI-generated web mini-games clearly reference the visuals and gameplay of an existing title. This is not a flaw but a real boundary of current capability—the more specific the reference, the more usable the output. Based on this, we split the development process into four layers, reducing uncertainty layer by layer.
3.1 Gameplay Layer: Write a Rules List Before Writing Code
Do not start by describing visuals. Instead, use natural language to spell out the state machine and numbers. Example prompt structure:
Character: a top-down web shooter prototypeCore loop: enter scene -> collect supplies -> engage enemies -> reach extraction point to settleControls: WASD to move, mouse to aim, left click to shoot, Shift to sprint, R to reloadNumbers: player health 100, enemy health 40, bullet damage 20, magazine 30 roundsFeedback: target flashes white on hit, short sound effect on kill, screen edges redden when hurtConstraints: no external assets, use basic geometric shapes and solid-color materials
Writing all three—rules, numbers, and feedback—significantly improves the controllability of the output. Just writing “make a shooter game” usually yields an unplayable empty shell.
3.2 Asset Layer: Replace Purchasing with Generation, Replace Polish with Constraints
Models, textures, and sound effects are the traditional cost heavyweights. The core of a low-cost approach is not “generate something more refined” but “trade style constraints for consistency”: a unified low-poly style, a unified limited color palette, and a unified sampling precision. This way, even across multiple generations, assets do not show obvious visual seams. Audio is the same—short synthesized gunshots, reload sounds, and hit sounds are enough for feedback, with no need to pursue realistic recordings.
3.3 Logic Layer: Have AI Write “Verifiable Small Functions”
Break gameplay into independent small modules: movement controller, aiming and raycasting, magazine and reloading, enemy pathfinding, pickup and settlement. Generate and verify each module separately. The practical approach is to require pure functions or single-responsibility components, avoiding a thousand-plus lines generated at once that are hard to debug.
// Example: a minimal reload state implementation, easy to verify in isolationfunction createAmmo(magSize, reserve) {let inMag = magSize, reloading = false;return {shoot() {if (reloading || inMag === 0) return false;inMag--; return true;},reload() {if (reloading || inMag === magSize) return;reloading = true;setTimeout(() => {const need = magSize - inMag;const take = Math.min(need, reserve);inMag += take; reserve -= take; reloading = false;}, 1200);},state: () => ({ inMag, reserve, reloading })};}
3.4 Verification Layer: Use a Playability Checklist Instead of Subjective Judgment
After the prototype is done, confirm each item on a fixed checklist: is the goal understood within three seconds; does every action have immediate visual or auditory feedback; can failure be restarted instantly; can the core loop complete one cycle within a minute. Passing these four means the gameplay skeleton holds; failing them means adding more visuals only wastes cost.
4. Cost Breakdown: How the 20 Yuan Figure Was Reached
Splitting total cost into four blocks shows where the room for compression lies:
| Cost item | Traditional approach | AI-assisted approach |
|---|---|---|
| Art assets | Outsourced or purchased, the largest share | Generated with style constraints, close to zero |
| Code implementation | Engine learning plus development labor | Natural-language driven, consumed per call |
| Compute/API usage | None | The main variable, controllable via lower resolution and fewer retries |
| Distribution and hosting | Servers and operations | Static hosting, extremely low cost |
In testing, generation resolution, retry count, and asset quantity were all pushed to the minimum, keeping only the assets necessary to validate gameplay, which brought cash spending down to roughly twenty yuan. Three reusable cost-saving principles:
- Validate gameplay first, then invest in presentation; do not generate high-precision assets at the prototype stage.
- Replace repeated regeneration with style and palette constraints to cut wasted calls.
- At the prototype stage, always use static hosting and general-purpose object storage for asset distribution, avoiding a backend built for a one-off validation.
If multiplayer or data retention is needed later, general cloud capabilities can be introduced on demand—for example, object storage for static assets, a container platform for real-time services, a message queue for events, and logging plus monitoring and alerting for observability. This is a stage where cost grows linearly with scale and should not be invested in during validation.
5. Capability Boundaries and Engineering Notes
- Game feel needs a human: numbers, hitboxes, recoil, and feedback latency—AI can only provide initial values; tuning requires repeated playtesting.
- Complex actions are hard to generate: combos, cancels, and precise hit reactions depend on state machine design and exceed the current stable output range.
- Asset consistency relies on constraints: without style constraints, models and textures will mismatch.
- Code maintainability relies on splitting: large one-shot files are hard to debug, so modularization is a required discipline.
- Copyright and compliance need self-checking: the more specific the reference, the closer the resemblance—before publishing, replace recognizable maps, characters, and identifying elements.
6. Conclusion
The real value of this test is not the number “a game for twenty yuan,” but validating a new development order: use the lowest cost to confirm whether the gameplay is fun, then decide whether to invest in presentation and engineering. AI turns asset production and basic implementation into capabilities that can be called on demand, pushing the bottleneck back to design judgment. For creators, this sharply lowers the trial-and-error cost of ideas; for teams, it means the prototype stage can explore more directions in parallel. Whoever turns ideas into playable things faster gets real feedback sooner—that is the core change low-cost AI development brings.
