raylib 0.1.0
raylib: ^0.1.0 copied to clipboard
raylib is a simple and easy-to-use library to enjoy videogames programming.
Raylib #
Dart bindings for raylib, a simple and easy-to-use library to enjoy videogames programming.
Usage #
Add raylib
as a dependency to your pubspec.yaml file (what?).
Importing raylib
:
import 'package:raylib/raylib.dart';
By default the package will look for the raylib
library in <PROJECT_ROOT>/include
using the following file conventions:
libraylib.so
for Linux and MacOS.
If your lib files are somewhere else or follow a different naming convention you can specify that in your pubspec.yaml
:
raylib:
platform:
linux: include/libraylib.so
macos: include/libraylib.so
Development #
Linux #
You need to have make
and git
installed:
sudo apt install build-essential git
After that you can check out the submodules:
git submodule update --init --recursive
After you have downloaded the submodules you can compile raylib
:
cd vendor/raylib/src
make PLATFORM=PLATFORM_DESKTOP RAYLIB_LIBTYPE=SHARED
cp ../libraylib.so.4.0.0 ../../../example/include/libraylib.so