GBDK Playground

September 30, 2025 ยท View on GitHub

It has 16 kB of RAM, man.

Build Requirements

Make sure to set the GBDKDIR environment variable pointing to your GBDK installation directory. The Makefile relies on this variable to locate the GBDK compiler and tools.

Samples

BlankHello WorldSmall Sprite
Minimum required codePrint Hello World!Render small 8x8 sprite
Big SpriteBig Sprite AnimationInput State
Render big 16x16 spriteAnimate big 16x16 spriteRead joypad state
Input WaitMove SpriteBackground
Wait for button inputMove a sprite using joypadRender a full-screen background
WindowBeepSimple SHMUP
Renders a windowMake a soundVery simple SHMUP
Huge SpriteDrawingDetect GB Type
Renders a huge 40x64 spriteBuilt-in drawing functionsDetect which GB is being used
Save RAMFontLink
Save/load variablesLoad a new fontSend/Receive data using link cable
ColorMore coming soon...
Use palettes for Game Boy ColorContributions are welcome!