SIAgentNews.com
← All news
DevelopingClaude

User builds 3D racing game in a single HTML file using Claude

A developer used Claude Fable 5.2 to create a playable 3D Fiat Uno racing game that runs entirely in a web browser.

· First reported by xda-developers.com

Claymation: picture for the story 'User builds 3D racing game in a single HTML file using Claude'
AI-made claymation for this story. No real people or products are shown.
$348estimated API cost to generate the file

The short version

  • The game features a 3D Fiat Uno with a ladder, inspired by a Brazilian cultural joke.
  • The project was created using Claude Fable 5.2 through a series of critic passes.
  • The final HTML file is 603 KB and would have cost roughly $348 to generate via the API.
  • The source code and specific prompts used to build the game are available on GitHub.

Why it matters

This shows that AI can now handle complex spatial logic and 3D rendering within the constraints of a single file. It signals a shift toward 'one-shot' game creation where users can generate playable experiences without a full development suite.

From swimming to racing

A developer known as Viktorkav recently shared a new project that showcases the growing capabilities of large language models in game development. Using Claude Fable 5.2, the creator built a 3D racing game that exists entirely within a single HTML file. This means the game can be played directly in a web browser without needing to install any additional software or assets.

The project was heavily inspired by a previous creation called Abyssal Garden. That earlier project used the same AI model to produce a 3D swimming simulator that squeezed into a 97KB HTML file. By following that successful blueprint, Viktorkav aimed to see how much complexity could be packed into a similar single-file format.

While the first project focused on underwater movement, this new iteration focuses on land vehicles. The creator wanted to see if the AI could handle the physics and environment of a racing game while maintaining the portability of a single file. As xda-developers.com reported, the result is a drivable car and a dedicated race track built from scratch by the AI.

The Fiat Uno with a ladder

The specific subject of this game is a 1996 Fiat Uno Mille EP, which is a two-door, light blue car. A unique detail added to the vehicle is an aluminum ladder strapped to its roof. This specific car configuration is not random, as it is based on a popular running joke in Brazil.

In Brazilian culture, the 'Uno with a ladder' represents a beat-up work vehicle that somehow manages to pass everyone else on the highway. By choosing this specific car, the developer added a layer of cultural humor to the technical achievement. The AI had to render the car, the ladder, and the track all within the constraints of the HTML file.

The developer provided specific instructions for the car's appearance in the prompt. They asked for a light blue model with the ladder clearly visible. This level of detail shows how users can guide AI to create specific assets that have personal or cultural meaning rather than just generic objects.

Seven hours of refinement

Creating a functional 3D engine is a complex task that required significant interaction with the AI. Viktorkav ran Claude Fable 5.2 for just over seven hours to get the core mechanics working. During this time, the AI underwent eight 'critic passes' to refine the engine and ensure the physics were stable enough to play.

A critic pass is a method where the AI evaluates its own work or receives specific feedback to identify and fix errors. This iterative process allowed the model to smooth out the driving mechanics and build the underlying logic for the 3D environment. It highlights that while the AI can generate code quickly, high-quality results often require a long chain of refinements.

Once the engine was functional, the developer moved to a second phase of prompting. This stage focused on adding the user interface and interactive elements. These additions included the game menus and the actual controls that allow the player to steer the Fiat Uno around the track.

The cost of high-quality code

The technical achievement of this project is highlighted by the size and cost of the final output. The entire game, including the 3D graphics and logic, fits into a 603 KB HTML file. This is a relatively small file size, making it very easy to share and run on almost any modern device with a web browser.

However, the process of generating this code was computationally expensive. The developer noted that if the game had been produced over the standard API, it would have racked up a bill of about $348. This underscores the high volume of tokens and processing power required to generate complex, bug-free 3D code in a single go.

Despite the high theoretical cost, the project serves as a proof of concept for what is possible with current models. The developer has made the source code and the specific prompts available on GitHub. This allows others to see exactly how the prompts were structured to achieve such a high level of detail.

A new trend in AI games

This project follows a recent trend where people have used Claude Code to create ports and decompilations of existing games. That trend saw a 'gold rush' of new game ports being released daily. This new project suggests we might be entering a second wave of AI-driven game creation focused on HTML-based experiences.

HTML games are particularly interesting because they remove the barriers to entry for players. Anyone with a link can play the game instantly without downloading a launcher or dealing with compatibility issues. This makes the AI a powerful tool for rapid prototyping and creating shareable, interactive content for the web.

As these models become more capable, we can expect to see more complex environments squeezed into single files. While a 3D racing game is a significant milestone, the technology suggests that other types of interactive simulations are also becoming possible. The community can now explore these creations by visiting the project's website to give the Fiat a spin.

What to watch

  • Whether more developers will use these prompts to create commercial HTML games.
  • If other models can achieve similar 3D results with lower API costs.
  • How the 'HTML game' trend will evolve as AI models get better at spatial reasoning.

Try it

You can visit Viktorkav's website to play the Fiat Uno racing game directly in your browser.

Sources and links

First reported by xda-developers.com. Written by the SI Agent News Desk from the reporting above.Written with AI from the source above. Every number is checked against the source. Spot a mistake? Corrections.

Liked it? Say why

Add a line for other readers.

No account needed. We never show your email. Comments with links, ads or abuse are held and not shown. Your comment shows after a quick check.

More AI news