Shiny Gen / Blog

How to make a virtual pet game for the Game Boy Color 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 virtual pet game with AI, open Shiny Gen, start a new game on the GBC Engine, and describe the pet in the Agent tab: the creature, its needs, what each action does, how its mood shows, how it grows, and that it should be saved on the cartridge. 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. Six messages gave Cozy Pet: a small round creature in a room with a window, a plant and a rug, four needs shown as bars, feed, play, clean and light icons, happy, hungry and sleepy faces, a bigger adult form after a while, sounds, a bell when it turns happy, a day counter, and a save on the cartridge. It took about eight minutes of agent time and about 30 gems.

Cozy Pet on the Game Boy Color engine with the light off: a dim room with the small round pet sleeping with ZZZ, FOOD, FUN, CLEAN and SLEEP need bars drawn as yellow pips at the top, DAY 1, and the feed, play, clean and light icons along the bottom.
Cozy Pet at night: the pet asleep, the need bars at the top and the four icons below. The agent drew everything as code.

The test: six messages, one virtual pet

Everything below is from one real session on 30 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 pet game, with the art asked for up front5 min 14 s10
2"continue"50 s2.8
3"continue"4 s0.2
4"continue"1 min 25 s8.8
5A bell when it is happy, and a day counter31 s4.6
6"continue"9 s3.2

Step by step: the virtual pet we made

1. Start a Game Boy Color game

Press +, choose New, pick Custom for a game of your own, 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 pet, art included

Our first prompt, exactly:

Make a virtual pet game for the Game Boy Color with real pixel art. You look after a small round creature in a cozy room. It has four needs shown as bars at the top: food, fun, clean and sleep, and they slowly go down. Use the D-pad to pick an icon at the bottom (feed, play, clean, light) and A to use it: feeding shows it eating, playing starts a tiny jump game, cleaning sweeps away a mess, and the light turns the room dark so it sleeps. It is happy, hungry or sleepy with matching faces, and after a while it grows from a baby into a bigger form. Save everything to the cartridge so the pet is there when you turn the game back on. Draw all the art yourself as code in bright Game Boy Color palettes: the room, the pet in every mood and both forms, the icons and the bars. A title screen.
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 virtual pet is a set of needs and the actions that fill them. The prompt lists both, says how the pet shows how it feels, and asks for the save, which is what makes a pet game work: the pet has to be there tomorrow.

3. The first message: a pet that lives

The agent drew the room, the pet and the icons as code, wrote the needs, the actions and the moods, and added saving with the cartridge's save calls. It played the actions, and its last message listed what worked and what was still open:

The four need bars are still rows of text characters (#), not drawn bars. Drawing them as real bars means placing many small sprites, and I have not yet worked out how to do that within the cartridge's sprite limit.
Cozy Pet after the first message: the lit room with the pet, a red mess beside it, the four need labels with bars made of # characters, and the four icons along the bottom.
The first version: the bars are text characters.
The Shiny Gen editor after the first message: the Cozy Pet title over the room, and the agent's list of what works and what is still open, ending with "Worked for 5m 14s, 10.0 gems".
The end of the first message, with the agent asking whether to keep working on the bars.

4. "continue": drawn bars

The second message replaced the text bars with drawn pips:

The need bars are now drawn as bright yellow pips that empty to pale lavender, so they read clearly against the room.

The next two messages said the game was finished and named the two things still open: the pet is small on screen, because the Game Boy Color cannot scale sprites, and the screen sometimes drops a frame, so switching the light and growing up can flicker for a moment.

The Cozy Pet title screen: COZY PET and PRESS START in the room with the window, a framed picture, a plant and a pink rug.
The title screen, drawn in the pet's own room.

5. Ask for the next change

The fifth message:

Add a little bell sound when it is happy, and a day counter that shows how many days you have looked after it.

The agent added a three-note bell when the mood turns happy and a DAY line under the needs that is saved with the pet. It said exactly how far it had checked:

I tested the counter on screen. I did not hear the bell or watch the happy-mood change happen, so that part is checked only in the code.

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 .gbc ROM to download the cartridge. Exporting is included with any purchase: the starter pack, any gem pack or a membership. The ROM guide covers emulators and flash carts.

Things to check yourself: the bell, the pet's size, the flicker when the light changes, and the save. In the agent's own tests the save carried a setting over a rebuild, but it did not report turning the game off and on.

What we learned from the test

What to put in a virtual pet prompt

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

Ideas to ask for next

FAQ

Can AI make a virtual pet game?

Yes. Describe the pet, its needs and its actions, and Shiny Gen's agent writes the game, draws it and tests it. This one took six messages, about eight minutes of agent time and about 30 gems.

Can AI make a game like Tamagotchi?

Yes, a game in the same genre: a virtual pet with needs to look after, like the one on this page. Make it your own, with your own creature, names and art, especially if you share or sell your game.

Does the pet stay when I turn the game off?

The game saves to the cartridge's battery-backed memory after each action and every few minutes, the way the agent built it. Check it yourself: play, close the game, and open it again.

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.

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

Last updated: November 30, 2026

Start makingDownload on the App StoreGet it on Google Play