I created a small game in Zig for the first time, and the experience was enjoyable.
Found the project here neerajshdev/raylib_game
Nice! Looks like it’s Windows only? I see some dependencies on things like winmm and gdi32?
Yes, it is currently window only
raylib has a build.zig, you could have used that and gotten free cross-platform support.
I am currently working on a zig-raylib-template, and unfortunately its not that simple.
One of the examples being Wayland support. You cant just use any backend, since most of them have bugs in them for fullscreen / borderless support. (which is no fault to the raylib team). The simplest universal fix is to go thru sdl backend for this specific issue (since sdl incorporates unholy shit ton of workarounds for wayland), but there is more stuff like this.
Why i am making a template when there is already raylib-zig project?
I am not only making bindings, but an example of some common functionality, simple pre-baked window scaling & ratio renderer with scene swaping, etc. Hope i will be able to release it soon (not much time lately tho). Ofc. with a build script that allows simple cross-compilation with tested edge-cases. Overall the goal it to make simple to use starting point for people comming to zig (this is what inspired to do the project, since i have friends which had issues)
