Skip to content

lukewilliamboswell/roc-ray

Repository files navigation

roc-raylib

Roc platform for graphics and GUI using zig and raylib

🚧 Work in Progress 🚧 basic implementation, no release, still refining APIs, please explore and give any feedback or assistance

Also check out this article for an overview of how I developed this platform.

Documenation

Hosted docs site coming soon.

Generate locally with roc docs platform/main.roc and then serve with file server e.g. cd generated-docs && simple-http-server.

Developing Locally

Tested on MacOS apple silicon and Ubuntu x64, please let me know if this works on other systems.

Build platform using bash build.sh

Run examples with roc dev --prebuilt-platform examples/basic_shapes.roc

Demo - GUI Counter

This is a minimal implementation of the Counter Example used in the Action-State design idea.

GUI counter demo

Demo - Pong

This is a demo of the classical pong video arcade game.

pong demo