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.

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.
| Message | What we sent | Agent time | Gems |
|---|---|---|---|
| 1 | The pet game, with the art asked for up front | 5 min 14 s | 10 |
| 2 | "continue" | 50 s | 2.8 |
| 3 | "continue" | 4 s | 0.2 |
| 4 | "continue" | 1 min 25 s | 8.8 |
| 5 | A bell when it is happy, and a day counter | 31 s | 4.6 |
| 6 | "continue" | 9 s | 3.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:

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:


4. "continue": drawn bars
The second message replaced the text bars with drawn pips:
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.

5. Ask for the next change
The fifth message:
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:
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
- Ask for the save in the first prompt. The agent built saving in from the start.
- The machine sets the limits. The Game Boy Color cannot scale sprites, so a bigger pet means a bigger drawing, which the agent named as still open.
- "continue" turns text into art. The first bars were characters; one more message drew them.
- Read what it checked "only in the code". The bell is one of those.
What to put in a virtual pet prompt
- The pet: what it looks like, its moods and its forms as it grows.
- The needs: which ones, how fast they drop, and how they show.
- The actions: each icon, what it does and any little animation or game.
- Time: a day counter, day and night, how long growing takes.
- Saving: "save everything to the cartridge".
- The look: the art style, and "draw the art yourself as code". Shiny Gen also has built-in AI image generation, which spends gems; this test asked for art drawn as code instead.
What the Game Boy Color can hold, for a pet game
- Screen: 160 x 144 pixels, a room with a status bar and an icon row.
- Sprites: 40 on screen and ten on one line, which a pet, bars and icons fill quickly, and they cannot be scaled.
- Colors: eight background palettes and eight sprite palettes of four colors each.
- Saves: a battery-backed save in the cartridge, so the pet is still there next time.
Ideas to ask for next
- "Make the pet bigger, built from several sprites."
- "Add a night and day outside the window."
- "Let the pet get sick if it is not cleaned, with a medicine icon."
- "Add a second mini-game for the play icon."
- "Show a little heart above the pet when it is happy."
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.
