base raylib window
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
build/
|
||||||
@@ -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
@@ -0,0 +1,15 @@
|
|||||||
|
#include "raylib.h"
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
InitWindow(800, 600, "Super cool game");
|
||||||
|
SetTargetFPS(60);
|
||||||
|
|
||||||
|
while (!WindowShouldClose()) {
|
||||||
|
BeginDrawing();
|
||||||
|
ClearBackground(RED);
|
||||||
|
EndDrawing();
|
||||||
|
}
|
||||||
|
|
||||||
|
CloseWindow();
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user