Like all tools, AI has good and bad uses. I am upset with developers who replace real content with AI, from graphics to sound to writing to gameplay. There is already plenty of AI slop creeping into the market. While I don't condone that, I’ve found ways to use AI in game development to improve quality and without sacrificing integrity. This article is about work on my own recent game, about how I use AI in a manner that respects the art form and values the players.
I started working on Rabanaz before the LLM trend but have adopted LLM use in some aspects of the game. I'm finding it helpful in a variety of ways. It has simplified dealing with Unity, from helping with research and debugging. It let me focus more on the game by assisting with non-runtime tooling. By allowing me to be lazy with some math, it has sped along the development of some visual effects. Perhaps my most significant use is as a Victorian-age thesaurus.
In this article I will describe each of the ways I use LLMs for Rabanaz, showing the benefits and limitations.
Unity research and debugging
I built Rabanaz's game engine on Unity. Unity has many partial systems, poor documentation, and dated tutorials — it is also a product that evolves over numerous versions. It is hard to work with Unity. Rabanaz is my fourth Unity project and I still struggle.
LLMs help me put together working examples. Though they also struggle with the ecosystem, they have been trained on much more information and can collate many sources. I get working examples quicker via an LLM than I do via forums or the documentation. Though I do frequently give negative prompts to exclude certain approaches or versions.
Often the rough code is enough to write the real code from. Sometimes I'll do a copy-paste loop between a test-scene and the LLM to explore how it works. This aspect of LLMs has gotten much better recently. Even a year ago, I don't think I ever had an LLM actually emit valid examples, but now they can.
I also use LLMs to debug some errors. There are often unusual messages that show up in the Unity console. Pasting those into an LLM gives numerous potentials. I can also just type symptoms in to the prompt and get some ideas.
As much as I benefit from LLMs here, I would much prefer a better product. I am clearly using an LLM to make up for shortfalls in Unity.
There's a brewing problem with using LLMs this way. If I didn't have an LLM, I would be forced to post in forums, which would generate answers. And as I often do, I would post an article about techniques I discovered. If this process disappears, then the LLMs don't have source material to refer to, and will have an even harder time producing answers. This is a whole different topic we'll have to address sometime.
Tooling
Creating a game involves writing many tools. Tools are code that helps create the game, but code that doesn't end up in the runtime. Even a small game like Rabanaz has many tools. As I mentioned in the Unity section, it's only recently that the LLMs have become capable of writing functioning Unity code, so most of my tools are still handwritten. For newer tools, I use LLMs.
Here are some of the tools that an LLM primarily wrote for me:
- Character Importer: I work with an artist that produces these lovely pixel graphics for the bad tubes in the game. They export them with a specific naming convention. I have a tool that scans the files and produces serializable objects from them (Unity's format). This is a C# tool that runs within Unity's IDE.
- Debug Game Setup: When writing new content, I want to be able to quickly test that content. Rather than play a round and hope it comes up, I can start in any game scene and load a predefined game state. I have a panel in the editor with controls to define all aspects of the game. I created the Unity panel with an LLM, though maintain it by hand now since it is faster.
- Steam Uploader: This takes the cloud output from the Unity build system, patches up the files, produces new outputs, and then uploads them to Steamworks. This is primarily a bash script with several configuration files.
- Addressable Folder Watcher: Addressables are a great feature in Unity, but they lack a good UI. To get the structure I want, I have a folder watcher that automatically tags and groups assets depending on their location.
- Unused Asset Detector: The game has accumulated a lot of graphics that are no longer used. These are older versions, tests, previews, and placeholders. I now have a tool that does a scan and shows me the files/folders that are unused. And I produced the counterpart: a tool that shows me where a resource is used. This helps me get rid of files that shouldn't be used anymore.
These all share one essential property: the code doesn't end up in the game. I can use an LLM here since the needs are highly tailored to Rabanaz, and it only needs to run on a development machine. The tool code isn't resilient, handling only the specific faults I've encountered so far. It's unlikely to be efficient. It often misbehaves — I have had tools mess up my project, but a simple git reset fixes that.
Secondly, all of this is throwaway knowledge. It has no transfer to other systems. I've produced similar tools many times before, so there's nothing left for me to learn here. Digging through docs and piecing together these tools is merely tedium. There is no IP here; every game has its own set of tools doing similar things.
Graphic math
I’ve done a lot of graphics work. I generally know what I want, and can derive the equations I need. However, as I haven't done it much recently, it takes time. And I have to learn the specifics for a particular language, such as C# or HLSL. I can use an LLM to get my equations faster in these languages.
For example, I have a pseudo-CRT panel in my game for some animations. I wanted a projection of a 2d image onto the curved 3d glass. The math isn't that hard, but it would take me a few tries. Then I'd have to translate it into code, and in this case a more limited shader code. It was easier to give an LLM the function signature I want and tell it what to calculate. The math is common enough that an LLM emits a good enough algorithm.
Another example, I have a needle in a game that moves in response to scoring. I wanted to model it as a spring. While a simple spring is easy enough, the details complicate it. The target location is dynamic as the score counts up. It should also reach the destination close to a fixed time, but still bounce. Previously I'd open up Maxima and Octave, play with some equations, then translate the results into code. But an LLM was able to emit something that worked well enough… well, at least after many iterations and error-fixing rounds.
I want to stress that Rabanaz is not a game that involves physics. It is a 2d game that doesn't involve 3d models, surfaces or deformation. I am not modelling a factory, or indeed a real machine at all. I'm not tracing bullet trajectories or intersections. My use of formulas is strictly for visual flair and has no relevance to game logic. Any glitch I can attribute to the failure of a Victorian-age machine run by ravens! If my game depended on the math, I'm not so sure I'd accept the code the LLM emitted.
Victorian age thesaurus
My entryway into LLMs was using it as a period reference. My newest game, Rabanaz, is set in a steampunk casino. I chose the Victorian period as it's often associated with that genre and has ample selection of fancy sounding words. Victorian-age steampunk is common in literature, thus part of the LLMs source material. Even with the smaller models, they function quite well as a period thesaurus.
If I have a name in mind already, I may ask the LLM to check period appropriateness or look for related terms. Other times I will just type a description of an item into a prompt. For example, I have a run modifier that makes it more expensive to sell an item. I wanted something thematic, so I typed: "a term that would make it harder to remove something." It emitted a list of words, one of which was "mastic" — not a word I recognized, but is a good match.
I also use it to improve my item descriptions, to make them sound more exotic. Here one has to be careful with an LLM. I use the LLM to produce several variant item descriptions. Some of them are nonsensical, uninteresting, or not true to the item or the game. But they give me some period wording ideas that I can adapt for my description.
While testing, I sometimes find the LLMs would make up words. Once I had a simple prompt that mentioned this was a video game, and then suddenly I got a bunch of cheesy names. Fortunately, as Victorian English is still late modern english, I can validate results in a dictionary.
I have since expanded my prompts to include full game information, which is a 32K text explaining all rules and terminology. It also includes instructions on setting and tone. The idea was to get consistent results and words tailored to the game world. It kind of works, but also creates a kind of suggestion bubble with overly restricted results. I sometimes go back to bare prompts to get a wider range of output.
I'm aware that I'm not getting actual period correct language. The LLMs have been trained on period literature in numerous styles as well as pastiche: modern literature mimicing that period with varying degrees of accuracy. It's also still modern english, thus the pseudo-Victorian flair is often artificial, as true utterances might sound more mundane. I will also sacrifice period accuracy if it hurts legibility.
Not used for…
Despite using an LLM extensively for refactoring at work, I don't use it on Rabanaz. There are a couple reasons for this: history and quality.
When I started Rabanaz, capable LLMs didn't exist. Environments that can sensibly refactor code are still relatively new. Rabanaz is also nearing the end of its primary development cycle. Work remains, but the bulk of coding is done. LLMs, like any tool, require adjustment in process and environment. Changing something fundamental this late in the process could side-track the development.
All the things I've mentioned previously in the article have been done in the web chat interface of the LLM. There's no integration into the main project. The thesaurus is naturally a chat interface, as is the Unity research. For debugging I just paste code fragments or files. The tools are mostly one-off and tunable by hand; thus I download them once. There's no need to change the main project setup for any of this.
There is some refactoring I can't do with the one-off approach. There are also some limitations of C# that an LLM could augment, but requires a full view of the code. I don't see enough value in those to justify integrating an LLM deeper, at least not this late into the project.
As to generating new code, I'm concerned about quality. I like the dream of being a game designer and simply instructing the LLM on how the parts of the game should work. But we're just not there yet. From work and my vibe-coded tools, I see the mistakes LLMs make. It often fails to understand flow, and in a game in particular, much of the flow isn't clear from the code itself. The LLMs are also not capable of making the decisions on tradeoffs and limitations inherent to a game.
Additionally, the unique mechanics of Rabanaz, or any game for that matter, are tightly tied to the code. The complexity of the interactions, from triggers to timings, is beyond what I've seen that an LLM is capable of understanding. An LLM fundamentally pulls a product towards a universal mean. This will represent a real loss in the uniqueness of individual games.
Using an LLM to create core game code will result in unstable systems. Players will experience crashed games, freezes, and broken gameplay. Perhaps we're forced to deal with instability and oddity at work. But we play games in our freetime. I want my players to have a great experience.





