Examples

5 example programs showing the raylib binding in action. Every example builds with iron build examples/<name>/<name>.iron and runs on both native and web targets.

Build and run

Every example compiles to a native binary from the repository root. The .iron file's basename becomes the output binary name (e.g. rotating_cube.iron./rotating_cube).

# Clone + build the compiler once
git clone https://github.com/victorl2/iron-lang.git
cd iron-lang && make

# Build and run any of the 5 examples
./build/ironc build examples/rotating_cube/rotating_cube.iron
./rotating_cube

# Web target from the same source
./build/ironc build --target=web examples/raylib_showcase/raylib_showcase.iron

Each example is designed to be self-contained — copy the source, swap the asset paths, and the file still builds.

See also