Shiny Gen / Blog

How to make a kart racing game like Mario Kart with AI (GBA or N64)

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 kart racing game with AI, open Shiny Gen, start a new game on the GBA Engine for a 2D track that turns in perspective, or the N64 Engine for real 3D, and describe the race in the Agent tab: the track, the karts, the laps, the computer racers, the controls and the screens. The AI agent writes the game, compiles a real cartridge, races it and fixes what it finds. We did both for this guide. Each took one prompt and two "continue" messages, about nine minutes of agent time, and 62 gems for the GBA game or 115 for the N64 one. Both races run from the title screen to a results screen.

Kart Racer 7 on the GBA engine: a red kart seen from behind on a grey track that turns in perspective over green grass, with blue and yellow rival karts ahead, a checkered start line, hills along the horizon, and LAP 1/3, POS 3/4 and the time at the top.
The GBA racer, drawn by the cartridge: a Mode 7 track and sprite karts, all drawn by the agent as code.

The test: two consoles, three messages each

Everything below is from two real sessions on 23 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 or frames drawn by the cartridge. Nothing was edited by hand.

GameMessageWhat we sentAgent timeGems
GBA1The race, with the art asked for up front7 min 35 s10
GBA2"continue"49 s25
GBA3"continue"1 min 9 s27
N641The race7 min 7 s10
N642"continue"1 min 34 s86
N643"continue"14 s19

GBA or N64: which kart racer to make

Both start from the same kind of prompt; pick the look you want.

The GBA racer, step by step

1. The prompt

Press +, choose New, pick GBA Engine, and type in the Agent tab. Ours:

Make a kart racing game for the Game Boy Advance with a Mode 7 track that turns in perspective as you steer, with real pixel art. Four karts race three laps around one track with grass, a sandy shortcut and a few boost pads. Draw all the art yourself as code: the track and its grass, a kart sprite for each racer in a different color seen from behind, a sky with hills along the horizon, and a lap and position display. A to accelerate, B to brake, D-pad left and right to steer, R to drift around tight corners. The three computer racers follow the track and can be overtaken. A title screen, a 3-2-1 countdown, and a results screen with your position and time.

2. The art first, then the race

The agent drew the four karts and the track as code before writing the race:

The Shiny Gen editor showing the sheet of red, blue, green and yellow kart sprites the agent drew as code, with the agent planning the track as a 256 x 256 background.
The kart sprites, drawn as code: one color per racer, seen from behind.

3. It finds a memory bug by reading the cartridge

The first build drew the track but the karts read back as garbage. The agent probed the cartridge's memory and found the cause:

The table s_tab_a starts at 0x02001000 and wpx sits at 0x02001184, inside that table's range, so the line tables are overwriting the kart globals. I'll move the table declarations so they are no longer placed ahead of the kart data.
The editor while the agent works: the title screen KART RACER 7 over the Mode 7 track, and the agent explaining that the Mode 7 line tables are spilling over into the kart variables.
The agent read the cartridge's memory to find that the Mode 7 tables overwrote the kart data.

It then found that the title screen ignored Start because the game polled the keys twice a frame, fixed that, raced to the finish and checked the results:

The GBA results screen over the track: RESULTS, POSITION 1/4, the race time and YOU WIN!
The results screen, after the agent raced to the finish.

The two "continue" messages fixed a kart that stayed hidden after a race and a speed that crept up with no cap:

Holding A adds 5 speed per frame, and the over-the-limit slowdown takes off only 4, so speed keeps creeping up with no cap. I'm fixing the speed logic.

The N64 racer, step by step

1. The prompt

Press +, choose New, pick N64 Engine, and type:

Make a 3D kart racing game for the N64 with a colorful low-poly look. Four karts race three laps around a looping track with a hill, a wooden bridge over water and two boost pads. A chase camera sits behind the player's kart. The three computer racers follow the track and can be overtaken. Show the lap, your position and a timer. A to accelerate, B to brake, the stick or D-pad to steer, Z to drift. A title screen, a 3-2-1 countdown and a results screen.
Kart Rush on the N64 engine: four low-poly karts at the start of a grey track with a boost pad ahead, trees on green grass, a minimap in the corner, and LAP 1/3, POS 3/4 and the time at the top.
Kart Rush at the start, in 3D on the N64 engine.

2. It keeps to the N64's budget

The N64 engine has a budget for what it can draw each frame, and it refuses a frame that goes over. The agent hit it and cut its own heads-up display down to fit:

The race is refusing frames on the HUD rectangles, so the picture freezes. I'll drop the waypoint dots from the minimap to cut the rectangle count, then rebuild and test.

3. It tests the results screen by letting the computer drive

To check the end of a race without driving three laps itself, the agent let the computer drive its kart for one run, and found a real bug in the results:

I found two problems. The results list shows VIOLET twice and never shows YOU, because tied finish times overwrite each other. I'm also still running a test change that lets the computer drive your kart. I'll fix both.
The N64 RACE OVER screen: your time and the finishing order, 1 BLUE, 2 YOU, 3 GREEN, 4 VIOLET, over the 3D track.
The results screen after the fix: all four karts listed once, with YOU among them.

Its last message said exactly what it had checked:

I haven't replayed a full race to the results screen since I gave the steering back. I did see it work in an earlier run, when all four karts were listed once, including YOU.
The Kart Rush title screen over a demo race: KART RUSH, 4 KARTS, 3 LAPS, HILL, BRIDGE, BOOST PADS, PRESS START, and the controls.
The title screen, with a demo race behind it.

Play it and download the ROM

Both games play in the editor and from their cards: on-screen buttons on a phone, the keyboard or a controller on a computer. Press Share, then the export button for the ROM. Exporting costs $25 per game (a one-time purchase for that game), or comes with a plan, and you can re-export that game any time. The GBA ROM plays in any GBA emulator and on a Game Boy Advance through a flash cart; the N64 ROM plays on a real N64 through a flash cart, or in ares or another low-level emulator. The ROM guide covers both; downloading is the same $25 purchase per game, or comes with a plan.

What we learned from the test

What to put in a kart racing prompt

What each console can hold

Ideas to ask for next

FAQ

Can AI make a game like Mario Kart?

Yes, a game in the same genre: a kart racer with laps, computer racers, boost pads and a results screen, like the two on this page. Make it your own: your own karts, characters, tracks and names rather than Mario Kart's, especially if you share or sell your game.

Can AI make a 3D N64 game?

Yes. Pick the N64 engine in Shiny Gen and describe the game; the agent writes it in 3D, compiles a real .z64 ROM, races it and fixes bugs. Kart Rush took three messages, about nine minutes of agent time and 115 gems.

What is Mode 7?

A Game Boy Advance graphics mode that rotates and scales a 2D background line by line, which draws a floor that turns in perspective. Racing games use it for the track; the karts are sprites on top.

Is it a real ROM?

Yes. The GBA game is a standard .gba ROM and the N64 game a .z64 ROM. We have played GBA ROMs made this way on a Game Boy Advance and a DS Lite, and N64 ROMs on a real N64, through flash carts.

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 and AI generation use gems, and new accounts get free gems. Downloading a ROM is a $25 purchase per game, or comes with a plan. See the pricing page.

Shiny Gen is not affiliated with or endorsed by Nintendo. Game Boy, Game Boy Advance, Nintendo 64 and Mario Kart are trademarks of Nintendo. They are named here only to describe.

Last updated: November 23, 2026

Start makingDownload on the App StoreGet it on Google Play