Getting the minivectorballs example from dos-like to build in Zig ⚡
Note
zig translate-c -lc minivectorballs.c > minivectorballs.zig
was used as a starting point of the port.
Most of the time was spent figuring out how to setup the build 😂
A fairly recent version of Zig master
(which would be 0.15.0-dev.1585
when this was written)
SDL2
GLEW
pthread
You should hopefully be able to compile the binary by calling zig build
Note
As a convenience you can compile and run the binary via zig build run
(or zig build run -- -w
if you want to start in windowed mode)