Skip to content

A raylib-zig playground with a simple code reloading setup.

License

Notifications You must be signed in to change notification settings

thabetx/raylib-zig-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raylib-zig-playgournd

raylib-zig-playground is a small Zig environment for creating small tools or games based on raylib.

The goal of this code is to present a minimal code reloading setup. Whenever program.zig has new saved changes the program will get compiled and restarted.

Here is how it looks.

demo.mp4

The Zig compiler is the only dependency.

Build with zig build. Run with zig build run-program.

program.zig is the main program.

watcher.zig watches program.zig and restarts it on change. This makes iterating on the code more fun.

You can use watch.bat to start the watcher. Which runs zig build run-watcher.

raylib.lib is prebuilt by running zig build -Drelease-fast in raylib/src in raylib's repository.

raylib commit: 178a356cb4130f942f051f5669f46ebcb7f438bc
zig version: 0.10.0-dev.4179+884979278

Note that this setup currently works only on Windows.

Enjoy!

About

A raylib-zig playground with a simple code reloading setup.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published