Demonstrandum / Zoids

Boids in Zig (GLFW+NanoVG / WASM+WebGL).

Home Page:https://demonstrandum.github.io/Zoids

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zoids

Boids, in OpenGL+GLFW using NanoVG. Written in Zig.

Just for trying out the language and tools.

WASM Web Version

See the boids compiled to WASM online here: demonstrandum.github.io/Zoids.

Dependencies

You must have glfw and nanovg installed as system packages.

Clone with

git clone --recurse-submodules -j8 https://github.com/Demonstrandum/Zoids.git

Run

zig build run

Build WASM

Build zoids.wasm and construct a website to deployment/. Must run web-server to serve local files, using Python http.server, for example.

zig build website -Dtarget=wasm32-freestanding
python3 -m http.server 8080 --directory ./deployment/
open http://localhost:8080/

screenshot

About

Boids in Zig (GLFW+NanoVG / WASM+WebGL).

https://demonstrandum.github.io/Zoids

License:GNU General Public License v3.0


Languages

Language:Zig 91.8%Language:HTML 8.2%