Prebuilt nodejs bindings of https://github.com/twuky/raylib-4.0.
import raylib from 'raylib-bin'
const raylib = require('raylib-bin')
let screenWidth = 800
let screenHeight = 450
raylib.InitWindow(screenWidth, screenHeight, "raylib [core] example - basic window")
raylib.SetTargetFPS(60)
while(!raylib.WindowShouldClose()) {
raylib.BeginDrawing()
raylib.ClearBackground(raylib.RAYWHITE)
raylib.DrawText("Congrats! You created your first window!", 190, 200, 20, raylib.LIGHTGRAY)
raylib.EndDrawing()
}
raylib.CloseWindow()
While in development this package is not available on NPM You can currently install the library through github: