Add raylib library
This commit is contained in:
26
main.c
26
main.c
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user