LLM-Driven Racing Game Development: A Practical "Wish-Based" Coding Workflow

    This article explores how large language models are shifting development from writing code to describing intent, a workflow often called "wish-based programming." Using a 3D arcade racing game as a case study, it walks through three prompt iterations—from a runnable skeleton, to layered visual and handling improvements, to performance tuning—and explains the three capabilities that matter most: long-context intent retention, stable multi-turn tool use, and controllable per-task cost. Readers will find four practical rules for keeping wish-based development predictable and cost-efficient.

    1. Introduction: From Writing Code to Describing a Wish

    Over the past two years, the way developers collaborate with large language models has undergone a subtle but profound shift. Early on, we tended to break requirements into fine-grained function signatures, interface contracts, and data structures, then have the model fill them in piece by piece. Today, as models continue to improve at terminal operations, tool calling, and automated tasks, a coarser-grained, more intent-driven style of interaction is gaining traction: describe the final result you want in a single natural-language sentence, and let the model plan the steps, write the code, and run and debug it on its own. The community half-jokingly calls this “wish-based programming.”

    It sounds like a joke, but there is real technical substance behind it. Whether a model can “understand a wish” depends on three things: intent retention over long contexts, stability across multi-turn tool calls, and whether the cost per task stays under control. This article discusses these three points in the abstract first, then walks through the methodology with a concrete case: recreating an arcade-style 3D racing game.

    2. Capability Evolution: What Really Matters Beyond Benchmark Scores

    Every time a model version is updated, the official release includes a set of benchmark scores. The scores are certainly a useful reference, but what deserves more attention is which dimensions have been significantly raised, because that usually corresponds to a shift in the boundaries of capability.

    When terminal-oriented benchmarks and automated-task benchmarks rise at the same time, it typically means the model has become more reliable along the loop of “perceive the environment → choose a tool → execute → correct based on feedback.” This is exactly the foundation of what the industry often calls a Harness for intelligent coding tools: the model is no longer just a text generator, but an executor that can read files, run commands, inspect logs, and modify code.

    Another frequently overlooked signal is improvement in coding-problem-solving benchmarks, which reflects the model’s ability to decompose and transfer knowledge when facing unfamiliar problems. For developers, this directly determines how far a “one-sentence requirement” can go.

    3. The Cost Perspective: A Pareto Improvement in Performance vs. Expense

    What deserves engineering teams’ attention even more than benchmark scores is the notion of a “Pareto improvement in performance versus expense.” The meaning is not mysterious: the unit price stays the same, but the total number of tokens consumed to complete the same task is decreasing, so the real bill goes down.

    Why does this matter especially for agentic applications? Because an agent task is never “one request, one response.” It may involve dozens of model calls, hundreds of tool executions, and several loops and rollbacks. The longer the chain, the more obvious the waste from ineffective output, repeated reasoning, and failed retries. In the past, people often skipped this cost accounting unconsciously, but once a task enters a long-horizon stage, that waste gets amplified into real numbers on the bill.

    There are roughly three practical ways to cut costs in engineering:

    • Compress ineffective output: constrain the model to produce only the necessary diff, rather than rewriting entire files;
    • Shorten the feedback loop: run the smallest verifiable piece first, then expand step by step;
    • Reduce failed retries: put environment constraints, dependency versions, and directory structure into the context ahead of time.

    4. Case Background: Why a Racing Game

    A racing game was chosen as the practice target because it simultaneously stresses three capability lines: the real-time rendering loop, an approximate implementation of physics and collision, and a multi-view camera system. If any one of them goes wrong, the visuals immediately “give it away,” so the feedback is very intuitive.

    The environment is set up as a coding toolchain optimized for agent tasks, calling a general-purpose large model with long-horizon execution capability through a standard interface. The following unfolds across three rounds of iteration.

    5. Round One: Pure Wishing

    In the first round I did almost no preparation—no requirements document, no technology selection—just a single sentence:

    1. Make a racing game: drivable, with a track and a timer,
    2. supporting switching between a driver's view and a rear view.

    The result was quite instructive: the home page, menu, basic driving, track, timer, and dual-view switching were all in place, and it was playable right away. But the overall look was clearly far from the mental expectation of a “racing game”—the car body was a block, the track lacked curbs and lane markings, the lighting was flat, and there was almost no sense of speed.

    The value of this round was confirming that the “skeleton was correct.” The strength of wish-based programming is precisely getting a runnable skeleton quickly, reducing the time cost of architecture decisions to nearly zero.

    6. Round Two: Turning the Wish into Layered Prompts

    The adjustment in the second round was not to complain that it “looked bad,” but to break the vague wish into verifiable layers. The lesson: the model does not lack execution ability; it lacks acceptance criteria.

    1. Continue on the existing project; do not rewrite.
    2. 1) Visuals: add curbs, dashed lane lines, distance fog, and simple tone mapping;
    3. 2) Handling: add an acceleration curve, steering damping, and slight drift;
    4. 3) Sense of speed: add dynamic field of view and edge blur;
    5. 4) Constraints: maintain 60fps, no single file over 400 lines.

    Two constraints were key: first, “do not rewrite,” to avoid the model starting over and wasting context; second, providing quantifiable acceptance conditions (frame rate, line count) so that every subsequent round could self-check. After this round, both the visual quality and the driving feel entered an acceptable range.

    7. Round Three: Detail Polishing and Performance Recovery

    The third round focused on the “last mile”: simple pathfinding for AI opponents, lap counting and best-score records, deceleration feedback after collisions, and resource release. The model was also asked to self-inspect performance hotspots and change per-frame object allocations to a reuse pool.

    The illustrative recovery logic is as follows:

    1. // Object pool: avoid GC jitter from per-frame new allocations
    2. const pool = Array.from({ length: 64 }, () => ({ x: 0, y: 0, active: false }));
    3. function acquire() { return pool.find(o => !o.active) || pool[0]; }
    4. function release(o) { o.active = false; }

    The significance of this round is that wish-based programming is not “wish and be done,” but a loop of “wish → verify → wish again,” where each round must have a clear increment and a clear boundary.

    8. Methodology: Four Rules for Keeping Wishes Controllable

    1. Get the skeleton first, then the polish. The first round only validates architecture and runnability.
    2. Layer the prompts. Write visuals, handling, performance, and constraints separately, making it easy to locate and roll back.
    3. Make “do not rewrite” explicit. Protect existing context and directly reduce token consumption.
    4. Set quantifiable acceptance criteria each round. Frame rate, line count, and a playability checklist let the model self-check rather than relying on manual comparison.

    9. Conclusion

    The improvement in model capability is shifting developers’ focus from “implementation” toward “definition and acceptance.” When terminal operations and automated execution are reliable enough and the cost per task keeps falling, a clear wish plus a strict set of layered acceptance criteria is enough to drive out a playable, iterable, and cost-controlled work. For teams, the capability that truly needs to be built is the ability to translate business intent into verifiable constraints—and that is precisely the dividing line between whether a “wish” comes true.