UNPKG
raylib-wasm
Version:
latest (0.0.4)
0.0.4
0.0.3
0.0.1
Make raylib games in JS for the web
raylib-wasm
/
docs
/
examples
/
core
/
core_basic_window.js
11 lines
(10 loc)
•
246 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
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
() }