magnolia

lightweight C engine for Wii homebrew games

The engine behind the Wii versions of magmacrunch's games, which run as homebrew, the Wii's unofficial software. It does everything a game needs apart from the game itself: starting up, reading the Wii remotes, drawing, sound, high scores and the menus, so each game only has to say how it plays.

the technical version

A lightweight C engine for Wii homebrew by magmacrunch media. It handles initialization, input, rendering, scoring, audio, and the game state shell, so you only write the gameplay. The API reference covers all twelve modules, and a scaffold that starts a new game project is planned. Built with devkitPPC and GRRLIB.

modules

core Engine init, SD mount, asset paths
renderer Video, font, frame presentation
sprite Textures, sprite sheets, mirroring, origin-based drawing
input Up to four Wiimotes: press, hold, release, snapshots
audio PCM16 SFX and music playback
scoring High-score tables with SD JSON persistence
gamestate Title, menu, play, pause, initials, scores
ui_utils 640x480 design-space drawing, overscan-safe
clock Frame counter, delta time, fixed timestep, easing
prefs Player settings with SD JSON persistence
menu Grid/list cursor with wrapping and scrolling
theme HSL palette generator, complementary colors

built on it

Every game with a Wii port. Each is a port of its browser version in the arcade.

getting started

Scaffolding a game, once you have the engine:

cd ~/game_dev
../magnolia/tools/new-game.sh my-game
cd my-game && make

PolyForm Noncommercial 1.0.0 · Copyright 2026 magmacrunch media. Apache-2.0 until 2026-10-15.

the name

After the song “Magnolia”, published by magmacrunch music.

// source access //

magnolia is developed in-house and is not publicly distributed. The API reference above documents every function across the twelve modules, and the games built on it are playable in the arcade.

For source access, licensing, or anything else, email info@magmacrunch.com.