LibRaylib Bindings for Crystal.
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 4. Raspberry PI
make install
in raylibraylib-cr
to your shard.yml
dependencies like so:dependencies:
raylib-cr:
github: sol-vin/raylib-cr
shards install
scoop install crystal
./rsrc/native/windows/raylib
to C:\raylib
$env:LIB="${env:LIB};C:\raylib\lib"
$env:PATH="${env:PATH};C:\raylib\lib"
OR
Run in cmd
set PATH=%PATH%;C:\raylib\lib
set LIB=%LIB%;C:\raylib\lib
raylib-cr
to your shard.yml
:dependencies:
raylib-cr:
github: sol-vin/raylib-cr
mkdir lib && cd lib && git clone https://github.com/sol-vin/raylib-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
TODO: WRITE BUILD EXAMPLE DOCS
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)