My implementation of pong
in zig in order to learn game development.
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.
zig build run
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 |
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 |