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
/
welcome.js
11 lines
(10 loc)
•
259 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
InitGame
=
async
(
) => {
InitWindow
(
400
,
450
) }
const
UpdateGame
= (
ts
) => {
BeginDrawing
()
ClearBackground
(
BLACK
)
DrawText
(
"Raylib WASM"
,
10
,
120
,
62
,
GREEN
)
DrawText
(
"Choose your demo from the selector!"
,
15
,
214
,
20
,
BLUE
)
EndDrawing
() }