/zig-pong

Pong implementation in zig

Primary LanguageZig

zig-pong

My implementation of pong in zig in order to learn game development.

Screenshot

For rendering, I'm using the delve framework. For collision and physics I use zbox2d (box2d for zig).

While a whole physics engine for a simple pong game is a total overkill, the educational value was actually worth it.

Running the game

zig build run

Controls

Key Description
J, Arrow Down Move paddle down
K, Arrow Up Move paddle up
Space Start game
F1 Toggle deubg redering mode
F2 Toggle audio

Assets

List of all the assets used in this game:

File Source/Author
assets/fonts/Mecha.ttf dafont.com
assets/fonts/Mecha_Bold.ttf dafont.com
assets/hit.wav stefanpartheym
assets/score.wav stefanpartheym