← Back to library
The Hat Chooses the Wizard · Play Free Online — GBA
GBAMPL-2.0

The Hat Chooses the Wizard · Play Free Online

Corwin Kuiper and Gwil

The Hat Chooses the Wizard is a free GBA game you can play right in your browser — no download, no install, with save states, gamepad support and touch controls on mobile.

MPL-2.0 — Corwin Kuiper & Gwil; built with AGB (AGB logo: CC BY-SA 4.0) · artwork source all cover credits

Play now

The first launch downloads the emulator core — please wait a moment.

How to Play: Controls

Keyboard

Game buttonKeyboard key
D-Pad↑ ↓ ← →
AZ
BX
LQ
RE
StartEnter
SelectV

These are the emulator's default bindings — remap them anytime in the emulator menu's control settings.

Gamepad

Plug in any USB or Bluetooth gamepad and play right away (Gamepad API) — no setup required.

Touch / Mobile

On phones and tablets a virtual gamepad (D-pad + A/B + Start/Select) appears automatically on the touchscreen.

The emulator menu also includes save states, fullscreen and fast-forward; your saves stay in this browser.

About

The Hat Chooses the Wizard is a Game Boy Advance platformer by Corwin Kuiper and Gwil, built with agb — the Rust library for GBA development — and released under the MPL-2.0 license.

It doubles as a showcase for agb: everything you see, from the crisp pixel art to the audio, demonstrates what a modern Rust toolchain can squeeze out of 2003-era hardware.

Play it online free in your browser — the GBA core runs client-side, no download, with save states, gamepad support and touch controls on mobile.

Source & project page ↗

What Is The Hat Chooses the Wizard? A Rust-Powered GBA Platformer

The Hat Chooses the Wizard is a puzzle platformer for the Game Boy Advance, made by Corwin Kuiper and Gwil — the two developers behind agb, the Rust library for GBA development. It's the flagship example game of the agb project, written during game jams, and it demonstrates something remarkable: a complete, polished GBA platformer written in Rust.

The title is also the mechanic. You play a wizard whose hat is the real protagonist: you throw the hat where you want to go, and the wizard flies after it. It's a fresh twist on platforming that turns every jump into a two-step decision — where to throw, and when to follow.

How to Play: Throw the Hat, Then Fly to It

The controls are elegant: press A (Z on your keyboard) to throw the hat — aim with the D-pad held as you throw, and you can send it in eight directions. Press A again while the hat is flying and the wizard launches toward it. You can recall and re-throw a couple of times before you land, which is where the puzzle depth lives: a single jump can become a hat-throw, a mid-air redirect, and a catch.

B (X) is your regular jump for plain old walking sections. Enemies come in two flavors — slimes and snails — and touching them or any hazard kills the wizard, sending you back to the start of the level. Reach the exit tile to clear a stage; the game contains 12 levels across two worlds, each introduced by a level-select screen.

The camera deserves a mention: it tracks a weighted average of the wizard and the hat, so long throws feel controlled rather than blind. It's one of those small design touches that makes the whole game feel considered.

A Complete Game Built with agb (Rust for GBA)

The agb project lets developers write GBA games in Rust with modern tooling — and this game is its proof of concept, complete with splash screens, sound effects, animated sprites and scrolling levels. For homebrew enthusiasts, it's one of the most interesting technical artifacts on the GBA: a full platformer demonstrating what Rust can do on 2001 handheld hardware.

The game is free to play and open-source under MPL-2.0, with music by Josh Woodward (CC-BY 4.0). On this page it runs in your browser at full speed — press Play and start throwing.

The Hat Chooses the Wizard Tips

Frequently Asked Questions

Is The Hat Chooses the Wizard free to play?

Yes. It's open-source (MPL-2.0) and runs free in your browser on this page — no download or account needed.

What are the controls?

A throws or recalls the hat (aim with the D-pad for eight directions), B jumps. Keyboard: arrows = D-pad, Z = A, X = B, Q = L, E = R, Enter = Start, V = Select. Gamepads and touchscreens work automatically.

How many levels are there?

12 levels across two worlds (1-1 through 2-4), each shown on a level-select screen before you start.

Why is it written in Rust?

It's the example game for agb, the Rust library for GBA development by the same authors. It proves a complete, polished GBA game — splash screens, sound, animation, scrolling — can be built in Rust with modern tooling.

Is it hard?

It's a puzzle platformer: the challenge is route-finding with the hat, not reflexes. Expect to retry levels while you learn the throw-and-fly mechanics, and use save states to practice tricky sections.

More GBA Games