~ntgg/snake-zig

Snake in zig, graphics based heavily on https://github.com/andrewrk/tetris
41b1db08 — Noah Graff 6 months ago
update for latest zig master
d0a97763 — Noah Graff 2 years ago
compatable with zig 0.5.0+51cbd9682 now
ebb4eb39 — Noah Graff 2 years ago
free memory in pause state

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~ntgg/snake-zig
read/write
git@git.sr.ht:~ntgg/snake-zig

You can also use your local clone with git send-email.

#Snake in Zig

A basic example of snake in Zig. Most of the OpenGL and graphics related code is from https://github.com/andrewrk/tetris. Made to learn and play around with Zig.

#Building

To build the game, you need Zig, GLFW, and libepoxy installed. Note that GLFW seemingly doesn't work on wayland, so you will have to run this under Xwayland. You can build and run with zig build play.