How to make a roguelike dungeon crawler for the GBA with AI
Also in: Español · Deutsch · Français · Português · Italiano · Nederlands · Svenska · Norsk · Bahasa Indonesia · Türkçe · Polski · Tiếng Việt · Русский · 日本語 · 한국어 · 繁體中文
To make a roguelike with AI, open Shiny Gen, start a new game on the GBA Engine, and describe the dungeon in the Agent tab: how floors are built, how turns work, the monsters, the items, how a run ends and the look. The AI agent writes the game, draws the pixel art as code, compiles a real Game Boy Advance cartridge, plays it and fixes what it finds. We did that for this guide. Five messages gave Amulet Delve: a hero stepping through a dungeon one tile at a time, a new layout on every floor, rats, skeletons and slimes that move when you move, potions and gold, a sword and a shield to find, a map of explored rooms, and an amulet on floor 5 that wins the run. It took about fourteen minutes of agent time and 221 gems.

The test: five messages, one roguelike
Everything below is from one real session on 28 November 2026, recorded in the Shiny Gen app. The prompts are copied word for word, the AI's messages are quoted from the chat, and the pictures are screenshots of the app. Nothing was edited by hand.
| Message | What we sent | Agent time | Gems |
|---|---|---|---|
| 1 | The roguelike, with the art asked for up front | 8 min 37 s | 10 |
| 2 | "continue" | 1 min 37 s | 71.8 |
| 3 | "continue" | 41 s | 35.3 |
| 4 | A sword, a shield and a map | 1 min 36 s | 45.5 |
| 5 | "continue" | 1 min 2 s | 59.1 |
Step by step: the roguelike we made
1. Start a GBA game
Press +, choose New, then pick GBA Engine on the Choose an engine screen. In a browser, this link opens a new GBA game directly. The Agent tab is where you talk to the AI.
2. Describe the dungeon, art included
Our first prompt, exactly:

The words that make it a roguelike are all there: floors generated new, monsters that move when you move, bump to attack, and a run that ends when you die.
3. The first message: a dungeon that plays
The agent wrote the art, the rules and the drawing as separate files, then the title, menu and game over screens, and built it. It started a run, walked the hero, bumped a slime, and checked the screens:

It said plainly what it had forced rather than played: it had set the game to a loss to see the game over screen, and placed a staircase beside the hero to test going down.
4. "continue": a bug on floor 5, and a stutter
The second message checked the amulet. On floor 5 the agent spotted several dark squares that looked like stairs, read the map to see what they were, and found its own bug:

It had also noticed that the game drops a frame or two when a new floor is generated, so the third message worked on that. It spread the map drawing over several frames, measured the cost, and reported honestly that it was better but not fixed:

In play this is a short hitch as each new floor appears.
5. Ask for the next change
The fourth message:
The agent added both items (a sword always on floor 2 and a shield on floor 3, with a chance on other floors), a defense number in the top bar, and a Select map drawn as text, with letters for you, the stairs and each item.

The last "continue" checked dying to a monster in real play, sliced the decoration drawing the same way as the map, and then played floor 1 for real: it read the map, walked to the stairs with the D-pad, killed a monster on the way, and reached floor 2 with full health and 12 gold. That is the floor in the picture at the top of this page. It did not walk all five floors by hand in one go.
6. Play it and download the ROM
The game plays in the editor and from its card: on-screen buttons on a phone, the keyboard or a controller on a computer. Press Share, then Export .gba ROM to download the cartridge. Exporting is included with any purchase. The ROM guide covers emulators and flash carts.
What we learned from the test
- Name the roguelike rules. Generated floors, turns, bumping to attack and permanent death came out exactly as asked.
- The agent reads the game to find bugs. The stray staircases were found by reading the map, not by guessing.
- It measures what it cannot fully fix. The floor-load hitch is smaller and reported with numbers.
- It says which parts it forced. Jumps to floor 4 and 5, a forced game over, a placed staircase: each is named in its messages.
What to put in a roguelike prompt
- The floor: rooms and corridors, how big, and what is placed on each floor.
- Turns: whether monsters move only when you do.
- Combat: bumping to attack, HP, attack, defense, and what a potion does.
- Monsters and items: each kind and what it does.
- The goal and the end: a target floor, what happens when you die, and the summary.
- Controls and the look: the buttons, tile sizes, and "draw the art yourself as code".
What the GBA can hold, for a roguelike
- Screen: 240 x 160 pixels; this dungeon is drawn in 16 x 16 tiles.
- Time: each frame has a budget of 228 scanlines of work; building a whole new floor in one frame goes over it, which is the hitch above.
- Sprites: up to 128 at once, plenty for the hero, monsters and items.
- Memory: 256 KB of working memory for maps and monsters.
- Saves: a 128 KB flash save, like a real cartridge. Ask for it: "Save the best score."
Ideas to ask for next
- "Build the next floor over several frames so the hitch is gone."
- "Add a shop on floor 3 that sells potions for gold."
- "Add traps that only show when you step next to them."
- "Give each run a random hero class: knight, rogue or mage."
- "Save the best score and the deepest floor."
FAQ
Can AI make a roguelike?
Yes. Describe the rules and the look, and Shiny Gen's agent writes the game, generates the floors, draws the art and tests it. This one took five messages, about fourteen minutes of agent time and 221 gems.
Can AI make a game like Rogue or a Mystery Dungeon game?
Yes, a game in the same genre: a turn-based dungeon crawler with generated floors, like the one on this page. Make it your own: your own hero, monsters, names and art, especially if you share or sell your game.
Is it a real .gba ROM?
Yes. It is a standard .gba cartridge image compiled to ARM machine code. We have played GBA ROMs made this way, saves included, on a Game Boy Advance and a DS Lite through a flash cart, and any GBA emulator opens it.
Do I need to know how to code?
No. You describe the game and the agent writes and tests the code. You can read and edit it in the Code view, and editing it by hand costs nothing.
Is it free?
Making, playing and sharing games is free. The built-in agent uses gems, and new accounts get free gems. Downloading the ROM is included with any purchase. See the pricing page.
