dart-raylib

0
README.md

Raylib

plugin version coverage report pipeline status dependencies Examples

Dart bindings for raylib, a simple and easy-to-use library to enjoy videogames programming.

Note: This package was written for

raylib
version 5.x and higher, older versions are not supported.

Currently this library does not support the following platforms:

  • iOS,
    raylib
    is built on top of OpenGL and that isn't supported on iOS.
  • macOS,
    raylib
    creates windows natively but on macOS that is only possible if you do it from the main thread but sadly the Dart VM is not the main thread. For more information check this issue and this one.

Not every binding has been fully tested. If you find a bug I would appreciate it if you created an issue on the repo.

Usage

Add

raylib
as a dependency to your pubspec.yaml file (what?).

Importing

raylib
:

You need to tell the package where it can find your raylib library:

See the example directory for examples.

Development

Linux

You need to have both

make
and
git
installed:

After that you can check out the submodules:

With the submodules downloaded you can start compiling

raylib
:

Then copy the compiled library to the example folder: