Add raylib library

This commit is contained in:
2023-10-31 11:39:24 +01:00
parent f3474ff895
commit 3acf19b705
896 changed files with 510860 additions and 2 deletions

26
main.c
View File

@@ -1,6 +1,28 @@
#include <stdio.h>
#include <raylib.h>
int main(void) {
const int screenWidth = 1280;
const int screenHeight = 720;
InitWindow(screenWidth, screenHeight, "PixelDefense");
SetTargetFPS(60);
while (!WindowShouldClose()) {
if (IsKeyPressed(KEY_ESCAPE)) {
break;
}
BeginDrawing();
ClearBackground(RAYWHITE);
EndDrawing();
}
CloseWindow();
int main() {
printf("Hello, World!\n");
return 0;
}