Skip to content

stefanpartheym/zig-pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Pong implementation in zig

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages