base raylib window

This commit is contained in:
speckitor
2026-07-03 23:36:51 +07:00
parent e8fca973ee
commit a326793863
3 changed files with 22 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
build/
+6
View File
@@ -0,0 +1,6 @@
build/game: src/main.c
mkdir -p build
gcc -o build/game src/main.c \
-I./raylib-6.0_linux_amd64/include \
-L./raylib-6.0_linux_amd64/lib \
-l:libraylib.a -lm -lX11
+15
View File
@@ -0,0 +1,15 @@
#include "raylib.h"
int main()
{
InitWindow(800, 600, "Super cool game");
SetTargetFPS(60);
while (!WindowShouldClose()) {
BeginDrawing();
ClearBackground(RED);
EndDrawing();
}
CloseWindow();
}