Skip to content

Latest commit

 

History

History

breakout

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Breakout

Simple Breakout clone using SDL3 for video, audio, input, etc. How quickly can you break all the bricks?

Uses the castholm/SDL Zig package, which builds SDL3 from source using the Zig build system.

Preview

Controls

Mouse/keyboard

  • 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

Gamepad

  • 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

Building

Requires Zig 0.12.1, 0.13.0 or 0.14.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

Additional credits