Shiny Gen / Blog

How to make a sports game with AI (a real Game Boy Advance tennis 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 a sports game with AI, open Shiny Gen, start a new game on the GBA Engine (or the N64 Engine for a 3D sport), and describe the match in the Agent tab: the sport, the camera, the controls, the rules and scoring, the opponent 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 with tennis. Five messages gave Pixel Tennis: a match against the computer on a court seen from behind your player, aimed shots, a net that stops low balls, real tennis scoring from 15 to advantage, first to three games, a power serve and a crowd that cheers your winning points. It took about nine minutes of agent time and 80 gems.

Pixel Tennis on the GBA engine: a blue-shirted player at the near baseline and a red-shirted computer player at the far end of a teal court with white lines and a net, in front of a crowd stand of colorful pixel spectators, with YOU G0, 0 - 30 and CPU G0 at the top.
Pixel Tennis in a match against the computer. The agent drew the players, court and crowd as code.

The test: five messages, one tennis game

Everything below is from one real session on 29 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 tennis game, with the art asked for up front7 min 18 s10
2"continue"36 s45
3"continue"7 s5.5
4A power serve and a cheering crowd57 s15.5
5"continue"5 s4.2

Step by step: the tennis game 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 match, art included

Our first prompt, exactly:

Make a tennis game for the Game Boy Advance with real pixel art. You play a tennis match against the computer on a green court seen from above and behind your player, like a TV camera. Move with the D-pad, swing with A when the ball comes near, and the direction you hold when you hit aims the shot. The ball bounces once on each side, can go out, and a net in the middle stops low shots. Real tennis scoring (15, 30, 40, deuce, advantage, game), first to three games wins the match, and the computer gets a little faster each game. Draw all the art yourself as code: 16x32 players with run and swing frames in two colors, the ball with a small shadow, the court lines, the net and a crowd stand. A title screen, a score board at the top, and a winner screen.
The first prompt typed into the Agent tab of a new GBA game in Shiny Gen.
The first prompt, in the Agent tab.

A sports game is mostly its rules, so the prompt spells them out the way a referee would: the bounce, out, the net, the scoring and what wins.

3. The first message: a match that runs

The agent wrote the court, the players, the ball and the scoring in one message and played it. Letting the match run without input taught it something about its own game:

The match is holding at 0-30 because the game waits for you to serve with A, so a no-input run never finishes. I'll force the last point to check the winner screen.

Its last message listed what was in the game and said plainly what it had not done: play a whole match itself and see the "YOU WIN" screen.

The Shiny Gen editor after the first message: the Pixel Tennis title over the court with the player ready to serve, and the agent's summary of what is in the game, ending with "Worked for 7m 18s, 10.0 gems".
The end of the first message: a complete match, with the parts it has not played named.

4. "continue": a serve that hit the net

The second message found and fixed a real bug:

I fixed a bug in the Pixel Tennis serve: a good serve now clears the net, where before it sometimes hit it.

It then served, the computer returned the ball, and the point went to the computer as "MISSED" because the agent did not swing back. The third message checked the remaining screens, forcing the last point of a match to see "YOU WIN THE MATCH!" with the games and your best score.

The Pixel Tennis title screen: PIXEL TENNIS, D-PAD MOVES, A SWINGS, HOLD A DIRECTION TO AIM, FIRST TO 3 GAMES WINS and PRESS START, over the court with the player and the ball.
The title screen, with the controls and the rules.

5. Ask for the next change

The fourth message:

Add a serve: hold A to fill a power bar and release it, and make the crowd cheer on a winning point.

The agent added a POWER bar that fills and empties while you hold A, a faster ball for more power, an out serve if you release at the very top, aiming while you release, and a crowd that animates with a cheer sound when you win a point. It said which part it had only forced, and the last "continue" checked it in real play:

I played a point where I won with a return that the CPU couldn't reach. It showed "WINNER" and the score went to 15, and the cheer timer started.
The Shiny Gen editor after the fourth message: the court, and the agent's notes on the power serve, aiming and the crowd cheer.
The power serve and the cheer, as the agent described them.
Pixel Tennis during a point: the red computer player at the net side and the blue player at the baseline with the ball, and YOU G0, 0 - 15, CPU G0 on the score board.
A point in play after the power serve was added.

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.

To try first: a whole match to three games, which the agent never played by hand.

What we learned from the test

What to put in a sports game prompt

What the GBA can hold, for a sports game

Ideas to ask for next

FAQ

Can AI make a sports game?

Yes. Describe the sport, the rules and the look, and Shiny Gen's agent writes the game, draws it and tests it. This tennis game took five messages, about nine minutes of agent time and 80 gems.

Can AI make a game like Mario Tennis?

Yes, a game in the same genre: a tennis game with real rules, like the one on this page. Make it your own: your own players, names and art rather than that game's, especially if you share or sell your game.

Can I make a 3D sports game?

Yes. Pick the N64 Engine for a 3D cartridge game, or the Godot Engine for 3D in the browser. See how to make a 3D game with AI.

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.

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. Game Boy Advance, DS and Mario Tennis are trademarks of Nintendo. They are named here only to describe.

Last updated: November 29, 2026

Start makingDownload on the App StoreGet it on Google Play