Snake in zig, graphics based heavily on https://github.com/andrewrk/tetris
free memory in pause state
removed clap stuff, because zig can't comple it
Added 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

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.