Module and generator script for Raylib. Current version is Raylib 5.1.
- Checkout this repository and put it in the
modulesfolder of your project. - Include the module with the
#import "raylib";directive.
#import "raylib";
main :: ()
{
InitWindow(800, 600, "raylib example");
SetTargetFPS(60);
while !WindowShouldClose()
{
BeginDrawing();
ClearBackground(RAYWHITE);
DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
EndDrawing();
}
CloseWindow();
}
- Windows
- Wasm (Not working yet because of some 32bits/64bits mismatch)
Feel free to submit pull requests if you want to add new platforms or any improvement.