Shiny Gen / Blog

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.

Amulet Delve on the GBA engine: a dungeon of grey stone walls and dark floor tiles, with the hero in a blue tunic, two skeletons, a green slime, a rat, a sword on the floor, gold, a red potion, wooden doors and the stairs, and HP 20/20, AT 2, F2, G 12, P1 and DF 0 at the top with FLOOR 2: FIND THE STAIRS.
Amulet Delve, floor 2, reached in real play: a sword waiting by the stairs. The agent drew every tile and sprite as code.

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.

MessageWhat we sentAgent timeGems
1The roguelike, with the art asked for up front8 min 37 s10
2"continue"1 min 37 s71.8
3"continue"41 s35.3
4A sword, a shield and a map1 min 36 s45.5
5"continue"1 min 2 s59.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:

Make a roguelike dungeon crawler for the Game Boy Advance with real pixel art. A hero explores a dungeon seen from above, one tile step at a time; each floor is generated new, with rooms joined by corridors, a staircase down, potions, gold and monsters that move when you move. Bumping a monster attacks it; HP, attack and the floor number show at the top, and dying ends the run with a summary of how deep you got. Reach floor 5 to find the amulet and win. Draw all the art yourself as code: 16x16 tiles for stone floor, walls, doors and stairs, a hero, three kinds of monsters (rat, skeleton, slime), potions and gold. A title screen. D-pad to move, A to wait a turn, Start for the menu.
The first prompt typed into the Agent tab of a new GBA game in Shiny Gen.
The first prompt, in the Agent tab.

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:

The game-over screen works: "YOU DIED", the floor, gold, kills, turns and score all show. Next, the win screen.
Amulet Delve on floor 3 after the first message: rooms of dark floor tiles joined by corridors, with the hero, two skeletons, rats, slimes, potions, gold, doors and several stairs.
After the first message: rooms, corridors, monsters and items on a generated floor.

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:

The room count wasn't reset when a floor was generated, so leftover rooms got stairs. Now floor 5 has one amulet and no extra stairs.
The win screen in Amulet Delve: YOU FOUND THE AMULET!, with floor reached 5, gold, monsters slain, turns, score 450 and best 450.
The win screen, reached by jumping to floor 4 and taking the stairs.

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:

Spreading the map drawing over several frames cut the peak cost from about 400 to about 330 scanlines, but it is still over the 228 limit.
The Shiny Gen editor after the third message: floor 1 of Amulet Delve, and the agent's summary that the stutter is reduced but not gone, with suggested changes below.
The agent's note on the stutter: reduced, not gone.

In play this is a short hitch as each new floor appears.

5. Ask for the next change

The fourth message:

Add a sword and a shield you can find on the floor that raise attack and defense, and show a small map of the explored rooms when I press Select.

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.

Amulet Delve after picking up the shield: A SHIELD! DEFENSE UP in the top bar, DF 1, the hero beside a rat and a slime, and another shield on the floor.
A shield picked up: defense goes from 0 to 1.

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

What to put in a roguelike prompt

What the GBA can hold, for a roguelike

Ideas to ask for next

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.

Shiny Gen is not affiliated with or endorsed by Nintendo or Spike Chunsoft. Game Boy Advance and DS are trademarks of Nintendo; Mystery Dungeon is a trademark of Spike Chunsoft. They are named here only to describe.

Last updated: November 29, 2026

Start makingDownload on the App StoreGet it on Google Play