raylib 0.2.0+1 copy "raylib: ^0.2.0+1" to clipboard
raylib: ^0.2.0+1 copied to clipboard

raylib is a simple and easy-to-use library to enjoy videogames programming.

example/lib/main.dart

import 'package:raylib/raylib.dart';

void main() {
  initLibrary(
    linux: './include/libraylib.so',
  );

  const screenWidth = 800;
  const screenHeight = 450;

  initWindow(
    screenWidth,
    screenHeight,
    'dart-raylib [core] example - basic window',
  );

  setTargetFPS(60);

  while (!windowShouldClose()) {
    beginDrawing();
    clearBackground(Color.white);
    drawText(
      'Congrats! You created your first window!',
      190,
      200,
      20,
      Color.lightGray,
    );
    endDrawing();
  }

  closeWindow();
}
26
likes
140
pub points
0%
popularity

Publisher

verified publisherwolfenra.in

raylib is a simple and easy-to-use library to enjoy videogames programming.

Repository (GitLab)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

ffi

More

Packages that depend on raylib