
Crystal Bindings for raylib, a small and easy to use game development library.
As for now the bindings only support the raw function calls from raylib itself.
raymath functions are also supported, as are infix operators for vectors,
matricies, and quaternions.
These platforms are supported out of the box and are linked statically
Hopefully soon
sh rsrc/native/ubuntu/install.sh
raylib-cr to your shard.yml:dependencies:
raylib-cr:
github: sol-vin/raylib-cr
shards installscoop install crystalpowershell ./rsrc/native/windows/install.ps1$env:LIB="${env:LIB};C:\raylib"
$env:PATH="${env:PATH};C:\raylib"
OR
Run in cmd
set PATH=%PATH%;C:\raylib
set LIB=%LIB%;C:\raylib
raylib-cr to your shard.yml:dependencies:
raylib-cr:
github: sol-vin/raylib-cr
shards installsh rsrc/native/msys2/install.sh
raylib-cr to your shard.yml:dependencies:
raylib-cr:
github: sol-vin/raylib-cr
shards installsudo sh rsrc/native/mac/mac-raylib-install.sh
raylib-cr to your shard.yml:dependencies:
raylib-cr:
github: sol-vin/raylib-cr
shards installmain.cr
require "raylib-cr"
Raylib.init_window(800, 450, "Hello World")
Raylib.set_target_fps(60)
until Raylib.close_window?
Raylib.begin_drawing
Raylib.clear_background(Raylib::RAYWHITE)
Raylib.draw_text("Hello World!", 190, 200, 20, Raylib::BLACK)
Raylib.end_drawing
end
Raylib.close_window
raylib-cr to shard.yml dependencies.shards install$env:LIB="${env:LIB};C:\raylib"
$env:PATH="${env:PATH};C:\raylib"
shards runIf you need to extra functionality, RLGL, RAudio and Lights can be included with the following.
require "raylib-cr/raygui"
require "raylib-cr/rlgl"
require "raylib-cr/audio"
require "raylib-cr/lights"
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)C
96.5%
Crystal
3.3%

Crystal Bindings for raylib, a small and easy to use game development library.
As for now the bindings only support the raw function calls from raylib itself.
raymath functions are also supported, as are infix operators for vectors,
matricies, and quaternions.
These platforms are supported out of the box and are linked statically
Hopefully soon
sh rsrc/native/ubuntu/install.sh
raylib-cr to your shard.yml:dependencies:
raylib-cr:
github: sol-vin/raylib-cr
shards installscoop install crystalpowershell ./rsrc/native/windows/install.ps1$env:LIB="${env:LIB};C:\raylib"
$env:PATH="${env:PATH};C:\raylib"
OR
Run in cmd
set PATH=%PATH%;C:\raylib
set LIB=%LIB%;C:\raylib
raylib-cr to your shard.yml:dependencies:
raylib-cr:
github: sol-vin/raylib-cr
shards installsh rsrc/native/msys2/install.sh
raylib-cr to your shard.yml:dependencies:
raylib-cr:
github: sol-vin/raylib-cr
shards installsudo sh rsrc/native/mac/mac-raylib-install.sh
raylib-cr to your shard.yml:dependencies:
raylib-cr:
github: sol-vin/raylib-cr
shards installmain.cr
require "raylib-cr"
Raylib.init_window(800, 450, "Hello World")
Raylib.set_target_fps(60)
until Raylib.close_window?
Raylib.begin_drawing
Raylib.clear_background(Raylib::RAYWHITE)
Raylib.draw_text("Hello World!", 190, 200, 20, Raylib::BLACK)
Raylib.end_drawing
end
Raylib.close_window
raylib-cr to shard.yml dependencies.shards install$env:LIB="${env:LIB};C:\raylib"
$env:PATH="${env:PATH};C:\raylib"
shards runIf you need to extra functionality, RLGL, RAudio and Lights can be included with the following.
require "raylib-cr/raygui"
require "raylib-cr/rlgl"
require "raylib-cr/audio"
require "raylib-cr/lights"
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)C
96.5%
Crystal
3.3%