Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 835 Bytes

README.md

File metadata and controls

26 lines (23 loc) · 835 Bytes

framework

A minimal game engine implementation that wraps around raylib in Zig

How To Use

  1. Clone this repo, put it somewhere in your project. (ex: external/framework)
  2. In your projects build.zig.zon file. Add the following dependency
        .@"framework" = .{
            .path = "framework path in your projects folder."
        },
  1. 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);
  1. Build project to see if it works.