A minimal game engine implementation that wraps around raylib in Zig
- Clone this repo, put it somewhere in your project. (ex: external/framework)
- In your projects build.zig.zon file. Add the following dependency
.@"framework" = .{
.path = "framework path in your projects folder."
},
- Head over to your build.zig file and add the following lines of code.
const framework_dep = b.dependency("framework", .{
.target = target,
.optimize = optimize
});
const framework_artifact = framework_dep.artifact("framework");
const framework = framework_dep.module("framework");
// Then link it all
exe.linkLibrary(framework_artifact);
exe.root_module.addImport("framework", framework);
- Build project to see if it works.