Industry observers note that people are trying to vibe code games. And it kind of works, at first. However, as the project grows, things begin to fall apart. Why? And what can we do about it?
I'll talk about the problem, how I fixed it, and where to go from here.
It has been revealed that first, what is vibe coding? It's originally coined by Andrej Karpathy in a viral tweet where it's defined as where you "fully give in to the vibes, embrace exponentials and forget the code even exists".
However, since then, it's used descriptively to mean a lot of different things, anywhere from just "using AI when coding" to "not thinking about the code at all". In this blog post, I'll define it as: using AI as a high-level programming language to build something. Like other programming languages, this benefits from understanding what's going on under the hood, but doesn't necessarily require it. (Related: How to train a newly introduced language model from scr...)
With this interpretation, you could make a game without understanding code, though knowing the fundamentals still helps. (Related: Breaking: Understanding BigBird's Block Sparse Attentio...)
Industry observers note that earlier I mentioned that "as the project grows, things begin to fall apart". This is because there is evidence that as the context window fills up, model performance begins to degrade. This is especially true for game development, where the context can grow very large, very promptly.
To address this problem, there are many personal ad-hoc solutions, such as writing LLM-specific context directly in the project files, or more comprehensive solutions like Claude Code Development Kit for large-scale context management.
In a recent development, I couldn't find a lightweight, accessible solution, which doesn't rely on significant domain knowledge. So I made one: π§ Shallot, a simple, lightweight, unopinionated context management system for Claude Code. It relies on two basic commands:.
Sources indicate that anecdotally, this works well. However, it works best when the project stays lean and well-organized, so all relevant context can easily fit in the model's context window. While Claude Code is used here, the same principles generalize to other models.
It has been revealed that beyond context management tools, platform choice is critical. The platform should ideally naturally keep projects lean through high-level abstractions, while also being something AI models understand well. So, what existing platforms are best suited for vibe coding?
I initially tried 3 different approaches to vibe coding games: Roblox MCP, Unity MCP, and web. For each, I tried to build a simple incremental game inspired by Grass Cutting Incremental, using Claude Code for each.
The official MCP server from Roblox. This allows AI to interact with Roblox Studio by sending commands to run code.
Recent findings suggest that roblox provides an excellent layer of abstraction for keeping the codebase lean and manageable, which is perfect for vibe coding. However, the walled garden and lack of context makes it infeasible for vibe coding, unless it's in-house at Roblox.
Recent findings suggest that the unofficial MCP server for Unity. This allows AI to interact with the Unity Editor: reading the console, managing assets, and validating scripts.
Unity is a powerful engine with a lot of capabilities. However, the complexity and variability of the engine makes it difficult for AI to consistently produce good results without significant user domain knowledge.
The open web platform, using three.js for 3D rendering, rapier for physics, and bitecs for game logic.
In a recent development, this approach had the best AI performance by far, likely due to the vast amount of web development data available during training. However, the low-level nature of the libraries meant that I had to essentially build a game engine before I could build the game itself. This allows us to work at a much higher level of abstraction, like we did with Roblox.
Although it required building an engine first, this approach was the only one that produced a fun result without heavy domain knowledge.
After these experiments, I had a clear picture: the web stack had excellent AI performance but was too low-level, while Roblox had perfect abstraction but lacked openness and context management.
So, what about combining the best of both?
Introducing VibeGame, a high-level declarative game engine built on top of three.js, rapier, and bitecs, designed specifically for AI-assisted game development.
There were three key decisions that went into the design of VibeGame:.
See it in action in this JSFiddle or the Live Demo.
This will create a simple scene with a ground plane and a falling ball. The player, camera, and lighting are created automatically. All of this is modular and can be replaced. Arbitrary custom components and systems can be added as needed.
This comes bundled with an llms.txt file containing documentation about the engine, designed specifically for AI, to be included in its system prompt or initial context.
Here's the game I built to test building a simple incremental grass collection game using VibeGame and Claude Code. It worked very well, requiring minimal domain knowledge for implementing the core game mechanics.
However, there are still some major caveats:.
In a recent development, so, with a definition of vibe coding that is the one-shot "make me a game" approach, it doesn't work. However, with the definition of treating vibe coding like a high-level programming language, it works very well, but requires owners to understand the engine's capabilities and limitations.
To try it immediately, I built a demo where you can develop a game directly in the browser using VibeGame with Qwen3-Next-80B-A3B-Instruct: Live Demo on Hugging Face.
You can also test it locally with a frontier model like Claude Code:.
Sources indicate that then, paste all the contents of the included llms.txt to CLAUDE.md, providing full documentation about the engine for the AI to reference (or point your own context management system to it). This works with other models as well.
Sources indicate that the engine is currently very barebones and only supports very basic mechanics (unless writing it from scratch). However, initial results are promising.
It has been revealed that it's also worth exploring how vibe coding games could harness more proven engines. For example, building a high-level sandbox game editor on top of Unity or Unreal Engine (similar to how Unreal Editor for Fortnite is built on Unreal Engine) could provide a more controlled environment for AI to work with, while leveraging the power of established engines.
We're also likely to see more in-house solutions from major players.
Follow me to keep up with what's going on in the space!
Sources indicate that thanks for the post ! If you have feedback or feature requests the Roblox MCP server, feel free to submit concerns on the project page:.
https://github.com/Roblox/studio-rust-mcp-server.
Also it is open source, so you can hack on it and add more context management tools here:https://github.com/Roblox/studio-rust-mcp-server/tree/main/plugin/src/Tools.
Recent findings suggest that this is very cool! A mini-engine with API designed for LLMs may be able to supercharge game development.
When I went to that jsfiddle/live demo site my threat detection system alarmed.
https://urlquery.net/report/08590583-4f70-4098-b269-48e3c8d25f4f.
Here is a platform for vibe game development; https://exekite.com/.
Very interesting in-dept article, it's fascinating how vibe coding is making game development more accessible.
For anyone interested in exploring what's already being built, we've been collecting the best AI-Assisted and vibe-coded games on VibeTopList. Feel free to check for yourself https://vibetoplist.com/.
I've been working on something along similar lines, called Rosh.
It covers some of the things you list as missing. Rooms are multiplayer and live: people and AI agents can be in the same room changing it together. The same room works in real time in your browser (three.js), a terminal, Unity and Unreal Engine. It also reads the room back to the AI as text, with notes on what looks wrong, so agents can fix their own object placement etc.
Here's a small live museum you can walk round, no sign-up: https://rosh.cloud/world/rosh/museum.
I'd love to hear what you think - and add anything you'd like to see in it.