Ryp/gb-emu-zig
Gameboy emulator written in Zig
2bb5f57ea8b8c43eabe514f7bbd3361365ba2ff3
Here's a simple Gameboy emulator written in Zig using SDL3. It can run games like Tetris, Zelda or Kirby decently, and doesn't pretend to do much more. Most basic features are implemented, like graphics, sound and controls, but there was no effort to support any complex hardware behavior or bugs. On the other hand the codebase should be very simple to get into and hopefully very readable.
Tetris | Zelda |
---|---|
This should get you going after cloning the repo:
zig build -Doptimize=ReleaseFast run -- <rom_file>
Keyboard key | Gameboy |
---|---|
Esc | Exit |
WASD | DPad |
O | A |
K | B |
Enter | Start |
B | Select |