Shiny Gen / Blog

How to make an endless runner with AI (a real Game Boy Advance test)

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 an endless runner with AI, open Shiny Gen, start a new game on the GBA Engine (or the Godot Engine for the browser), and describe the run in the Agent tab: the runner, what scrolls, the obstacles and how to get past each one, what you collect, how it speeds up 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 Fox Run: a fox running through a forest that scrolls forever, with far hills and near trees moving at different speeds, logs to jump, branches to duck under, berries to collect, a best distance that is saved, a double jump and a golden berry that lets the fox break through logs. It took about eight minutes of agent time and 83 gems.

Fox Run on the GBA engine: an orange fox running on a strip of grass and dirt through a forest of round green trees, with blue-grey hills and white clouds behind, and DIST 27 and BERRY 1 at the top.
Fox Run after the second message, one berry collected. The agent drew every tile and sprite as code.

The test: five messages, one runner

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 runner, with the art asked for up front5 min 31 s10
2"continue"21 s19.4
3"continue"19 s6.9
4A double jump and a golden berry47 s21.3
5"continue"41 s25.4

An endless runner is one of the smallest complete games, which is why it is a good first game: the first message did almost all of it.

Step by step: the runner 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 run, art included

Our first prompt, exactly:

Make an endless runner for the Game Boy Advance with real pixel art. A fox runs to the right through a forest that scrolls forever, jumping over logs and ducking under low branches, collecting berries. The speed rises slowly, the distance counts up, and one hit ends the run with the distance and the best distance, which is saved. A parallax background with far hills and near trees. Draw all the art yourself as code: a 16x16 fox with run, jump and duck frames, logs, branches, berries and the forest tiles. A title screen and a game over screen. A to jump, Down to duck, Start to pause.
The first prompt typed into the Agent tab of a new GBA game in Shiny Gen.
The first prompt, in the Agent tab.

Each obstacle comes with the move that beats it (jump the logs, duck the branches), which is what makes a runner fair.

3. The first message: a working game, and one bug of its own

The agent made the fox frames, the log, the branch, the berry, two forest layers, music and sounds, then wrote the game. Its first test press did not start a run, and it found the cause in its own code:

The cause is in my code: frame() calls key_poll(), which the engine already does, so every one-shot press (Start, A) is cancelled. I'll remove that call and test again.

Then it played: a run with the distance counting, a jump, a hit that ended the run at distance 20, and the best distance saved. Its last message listed what it had not seen yet (ducking under a branch and collecting a berry) and was frank about the art:

The forest and hills are placeholder-quality art. The forest looked a bit rough when I last looked at it. The sound is also a short placeholder loop.
The Shiny Gen editor after the first message: Fox Run with the fox among the trees and a log ahead, DIST 12, and the agent's notes on what it checked and the placeholder art, ending with "Worked for 5m 31s, 10.0 gems".
The end of the first message: a playable runner in five and a half minutes.

4. "continue": the rest, checked

The second message checked ducking under a branch and collecting a berry, and the third looked at the title screen and found nothing to change:

I played it myself just now: a run with the HUD, and a screenshot sequence of the fox running through the forest. The berry counter shows 1 after the berry I placed in the fox's path was collected.
Fox Run's title screen: F O X R U N and BEST 32 over the forest, with the demo fox running past a branch and A JUMP DOWN DUCK on the grass.
The title screen with the saved best distance and a demo run behind it.

5. Ask for the next change

The fourth message:

Add a double jump, and a golden berry that makes the fox glow and break through logs for five seconds.

The agent added both and checked that the golden berry starts its timer and shows a glow ring. The fifth message moved the title down so a drifting cloud no longer covered a letter. In its messages it confirmed the golden berry's glow, but it did not report seeing a double jump or a log breaking in play, so those are the first things to try yourself.

Fox Run after the fourth message: the fox running through the forest with DIST 72 and BERRY 0.
A run after the double jump and the golden berry were added.

One more thing to check: on the last title screen the best distance read 0, after it had shown 32 earlier in the session, so play a run and look at the title to make sure your best is kept.

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 an endless runner prompt

What the GBA can hold, for a runner

Ideas to ask for next

FAQ

Can AI make an endless runner?

Yes. Describe the run and the look, and Shiny Gen's agent writes the game, draws it and tests it. This one took five messages, about eight minutes of agent time and 83 gems, and the first message alone made a playable game.

Can AI make a game like Chrome's dinosaur game or Temple Run?

Yes, a game in the same genre: an endless runner, like the one on this page. Make it your own, with your own runner, 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.

Can I make it for the browser instead?

Yes. Pick the Godot Engine and describe the same game; it plays in a browser and on phones. See our beginners' test, where a cat runner was made on Godot.

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, Google or Imangi Studios. Game Boy Advance and DS are trademarks of Nintendo; Chrome is a trademark of Google; Temple Run is a trademark of Imangi Studios. They are named here only to describe.

Last updated: November 29, 2026

Start makingDownload on the App StoreGet it on Google Play