Shiny Gen / Blog

How to make a puzzle game with AI (and play it on a Game Boy Color)

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 puzzle game with AI, open Shiny Gen, start a new game on the GBC Engine (or Godot or GBA), and describe the puzzle in the Agent tab: the pieces, the board, how pieces move, what clears them, what makes it harder and the screens around it. The AI agent writes the game, draws the pixel art as code, compiles a real Game Boy Color cartridge, plays it and fixes what it finds. We did that for this guide. Five messages gave Gem Well: columns of three gems falling into a well, matches of three or more in a row, column or diagonal, chain bonuses, levels that speed up, a pause screen, a two-minute time attack mode and a best score for each mode. It took about twelve minutes of agent time and 224 gems.

Gem Well on the Game Boy Color engine: a well of purple and teal bricks with red, yellow, green, blue and pink gems stacked inside and flashing stars where a match is clearing, a NEXT box with three gems, and a panel reading GEM WELL, 2 MIN, PRESS and BEST 113.
Gem Well after a two-minute round: a match flashing as stars before it clears. The agent drew every gem and brick as code.

The test: five messages, one puzzle game

Everything below is from one real session on 27 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 puzzle game, with the art asked for up front5 min 15 s10
2"continue"2 min 43 s86.2
3"continue"42 s29.6
4A time attack mode and flashing gems1 min 2 s30.5
5"continue"1 min 45 s68.1

Step by step: the puzzle game we made

1. Start a Game Boy Color game

Press +, choose New, then pick GBC Engine on the Choose an engine screen. In a browser, this link opens a new GBC game directly. The Agent tab is where you talk to the AI.

2. Describe the rules, art included

Our first prompt, exactly:

Make a falling-block puzzle game for the Game Boy Color with real pixel art. Pieces of three colored gems fall into a well 8 wide and 16 tall; move them left and right, cycle the gem order with A, and drop faster with Down. Lining up three or more gems of the same color in a row, a column or a diagonal clears them, the gems above fall, and chains score extra. The speed rises every 20 cleared gems. Draw all the art yourself as code in bright Game Boy Color palettes: 8x8 gem tiles in five colors with a shine, a patterned well border, a next-piece box and a score panel. A title screen, a pause screen and a game over screen with the high score saved.
The first prompt typed into the Agent tab of a new Game Boy Color game in Shiny Gen.
The first prompt, in the Agent tab.

A puzzle game lives or dies by its rules, so the prompt spells them out: the board size, the piece, every control, what counts as a match, what happens after a clear, and how it gets harder.

3. Watch it build, then play the pause screen

The agent read the Game Boy Color reference, drew the gem tiles and the brick border as code, and built the game. It found and fixed its own bugs as it played: the well's side borders vanished on one row because a text-clearing call wiped the whole line, and "PAUSED" stayed on screen after resuming. Its first message ended with a clear split:

The pause fix works. The PAUSED text clears on resume and the piece falls again. The rest of the game is not yet verified.
The Shiny Gen editor after the first message: Gem Well's empty well with a falling piece, the NEXT box and the score panel, and the agent's list of what it has not played yet, ending with "Worked for 5m 15s, 10.0 gems".
The end of the first message: the game runs, and the agent lists matches, chains and saving as not yet played.

4. "continue": testing matches and chains

Matches and chains are hard to test by pressing buttons, because the right gems have to land in the right place. The agent spent the next two messages setting up boards by writing the game's memory directly, struggled when some of those writes did not take, and got there in the end:

I've now seen the chain display run: the screen shows "CHAIN x 2" while the second clear flashes. I set up a board where clearing three of one gem dropped another gem into a second match.
Gem Well's game over screen in the editor: GAME OVER and NEW BEST over the well, with SCORE 189, BEST 189, LEVEL 2 and GEMS 27 in the panel.
After the chain test: 27 gems cleared, level 2, a new best score.

That is the most expensive part of this session, and it is worth knowing: testing a puzzle's rules can cost more than building them.

5. Ask for the next change

The fourth message:

Add a two-minute time attack mode chosen on the title screen, and make the gems flash before they clear.

The agent added the mode switch on the title screen (FREE or 2 MIN), a countdown beside the next-piece box, a "TIME UP" ending and a best score per mode. It also told us that part of the request was already there:

Time attack is built, but I only partly tested it, and the gem flash was already in the game before you asked.

It made the existing flash faster so it is easier to see.

6. The part it could not confirm: the saved best score

The last "continue" tried to prove that the best score survives turning the cartridge off and on. The game wrote its save without an error, but in the editor's test setup the score never came back after a restart, and the agent could not tell whether that was the test setup or a bug in its game:

The save code is the standard read-in-init(), write-at-game-over pattern, and the write succeeds. I can't tell whether the empty read-back is a limit of this test setup or a real bug.
The Shiny Gen editor after the fifth message: the Gem Well title screen, and the agent's note suggesting a check on real hardware for the saved best score.
The agent's last message: the best score's save is the one thing left to check yourself.

So that is the first thing to check when you play it yourself.

7. 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 .gbc 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 puzzle game prompt

What the Game Boy Color can hold, for a puzzle game

Ideas to ask for next

FAQ

Can AI make a puzzle game?

Yes. Describe the rules and the look, and Shiny Gen's agent writes the game, draws it and tests it. This one took five messages, about twelve minutes of agent time and 224 gems.

Can AI make a game like Tetris?

Yes, a game in the same genre: a falling-block puzzle like the one on this page. Make it your own, with your own pieces, rules, names and art rather than Tetris's, especially if you share or sell your game.

Is it a real .gbc ROM?

Yes. It is a Game Boy Color cartridge image compiled to the machine's own code. We have played Game Boy Color ROMs made this way on a Game Boy Advance and a ModRetro Chromatic through flash carts, and any GBC emulator opens it.

Can I make a puzzle game for the browser instead?

Yes. Pick the Godot Engine instead of the GBC Engine and describe the same game; it plays in a browser and on phones.

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, The Tetris Company or ModRetro. Game Boy, Game Boy Color and Game Boy Advance are trademarks of Nintendo; Tetris is a trademark of The Tetris Company; ModRetro and Chromatic are trademarks of ModRetro. They are named here only to describe.

Last updated: November 29, 2026

Start makingDownload on the App StoreGet it on Google Play