← All posts Chupacabras (for GBA)

Chupacabras (for GBA): the whole game on a Game Boy Advance

Chupacabras now runs on a real Game Boy Advance. The GBA version is the complete game as a 3.2 MB ROM file: 256 farms, three difficulties, the high score table, the ending and the credits. Copy it to a flash cartridge and play it on a GBA, a GBA SP, a Game Boy Micro or the GBA slot of a DS, or open it in an emulator on your computer or phone. It has its own page on itch.io for $2.99.

How it got there

The Windows version (3.0.0) was rewritten in C++ earlier this year, and owning all of the code is what made this possible. The GBA version grew out of it in steps: first the game was cut down to a single player at a handheld's resolution, then laid out pixel by pixel for the GBA's 240x160 screen while still running on the PC, and only then moved to the real thing.

On the GBA there is no engine and no library. The game talks to the hardware directly: the background layers, the sprite memory, the sound chip and the save chip. A few things I had to do for a console from 2001:

  • No decimals. The GBA's processor has no floating point unit, so every position and speed is a fixed point number: a whole part and a fraction packed into one integer.
  • The music and every sound effect are mixed by the game itself, sample by sample, and sent to the GBA's digital sound output. A GBA has no MP3 or OGG player built in.
  • Text sits on any pixel. The GBA draws text on a grid of 8 pixel tiles, which would have pushed every centered line a few pixels off. The game scrolls each row of text separately, screen line by screen line, so every screen matches the layout exactly.
  • Your options and high scores are saved on the cartridge (the SRAM chip), so they survive turning the GBA off.

What's different from the Windows version

  • One player. The GBA has one set of buttons. A link cable mode is an idea for later, not a promise.
  • Bigger corrals. The smallest corrals grow with the level, so the later farms are a little roomier for the goats.
  • The lives show as your chupacabras next to a number, GBA-style, instead of a row of icons.
  • Everything else is the same game: the same farms, the same farmers, police and soldiers, the same UFO drops, the same ending.

What you get

A zip with Chupacabras.gba, its manual (a PDF), a README and the license. On a flash cartridge or in an emulator the save goes next to the ROM, usually as Chupacabras.sav. I recommend mGBA, which is free, if you don't have a cartridge.

Next

Vieques is getting the same treatment and comes to the GBA next.

Thanks for playing! If you find a bug, or you have it running on something unusual, leave a comment on its itch.io page.

Game Boy Advance is a trademark of Nintendo. This game is an independent production and is not licensed by, endorsed by or affiliated with Nintendo.