UNPKG

raylib-wasm

Version:

Make raylib games in JS for the web

11 lines (10 loc) 246 B
const InitGame = async () => { InitWindow(800, 450) } const UpdateGame = (ts) => { BeginDrawing() ClearBackground(RAYWHITE) DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY); DrawFPS(10, 10) EndDrawing() }