Simple Breakout clone using SDL3 for video, audio, input, etc. How quickly can you break all the bricks?
Uses castholm/SDL to build SDL3 from source.
- Left mouse button: Lock the mouse to the game window
- Mouse, arrow keys: Move the paddle
- Left shift: Hold to slow the paddle movement
- Left mouse button, space: Launch the ball
- R: Restart
- Esc: Unlock the mouse
- D-pad, left stick: Move the paddle
- LB, RB, LT, RT: Hold to slow the paddle movement
- A, B: Launch the ball
- Start, back: Restart
Requires Zig 0.15.2 or 0.16.0-dev (master).
# Run the game
zig build run
# Cross-compile for Windows
zig build -Dtarget=x86_64-windows-gnu -Doptimize=ReleaseFast
# Cross-compile for Linux
zig build -Dtarget=x86_64-linux-gnu -Doptimize=ReleaseFast
# Build for the Web (requires Emscripten)
embuilder build sysroot
zig build -Dtarget=wasm32-emscripten -Doptimize=ReleaseFast --sysroot "$(em-config CACHE)/sysroot"- Sprites: Puzzle Pack 1.0 by Kenney, licensed under CC0
- Sounds: Interface Sounds 1.0 by Kenney, licensed under CC0
