Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simple example showing how to add raylib as a dep in zon, build it and use it

Notifications You must be signed in to change notification settings

gardc/zig-raylib-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

9 Commits

Repository files navigation

What is this?

Zig + raylib = this, a simple example of how to build and use raylib in Zig. The rendering example is based off the language benchmark moving balls memes, but every language gets a random speed at runtime.

screenshot

Rendering

Right now it's capped at 120FPS to limit resource usage, but removing ray.SetTargetFPS(120); from main.zig will allow it to run at full speed.

Build

build.zig.zon has been configured to install and build raylib as a dependency.

Run

zig build run will build and run the program. zig build will just build the program.

About

Simple example showing how to add raylib as a dep in zon, build it and use it

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

AltStyle によって変換されたページ (->オリジナル) /