-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.InitWindow
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Initialize window and OpenGL context
| Parameter | Default Value | Note |
|---|---|---|
| width | 960 | |
| height | 640 | |
| title | "raylib-miniscript" |
None.
raylib.InitWindow 800, 600, "My Game"
raylib.SetTargetFPS 60
while not raylib.WindowShouldClose
raylib.BeginDrawing
raylib.ClearBackground color.black
raylib.DrawText "Hello, World!", 300, 280, 24, color.white
raylib.EndDrawing
end while
raylib.CloseWindow