speedcat/examples/raylib.cat
Slendi fad3f16e04 Give up on the C parser
This is just going to overcomplicate things. It will not be needed
pretty much at all for the goals of this language.

Signed-off-by: Slendi <slendi@socopon.com>
2024-03-03 22:20:05 +02:00

14 lines
229 B
Plaintext

use rl "raylib"
rl.InitWindow 640 480 "Main window"
defer rl.CloseWindow
rl.SetTargetFPS 60
for !rl.WindowShouldClose {
rl.BeginDrawing
rl.ClearBackground .RAYWHITE
rl.DrawText "Hello world!" 50 50 40 .RED
rl.EndDrawing
}