From dc3d98ab47fefc8388455dbbd4d330e81499d95a Mon Sep 17 00:00:00 2001 From: BoredGuy Date: Thu, 24 Jul 2025 20:37:56 -0700 Subject: Initial Commit --- src/main.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/main.c (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..f01f61c --- /dev/null +++ b/src/main.c @@ -0,0 +1,21 @@ +#include +#include +#include "constants.h" +#include "game.h" + +int main() { + SetConfigFlags(FLAG_VSYNC_HINT); //Always better than fixed FPS imo + InitWindow(WINDOW_WIDTH, WINDOW_HEIGHT, "My BeatEmup"); + SetTargetFPS(0); + + InitGame(); + + while(!WindowShouldClose()) { + UpdateGame(GetFrameTime()); + + DrawGame(); + } + + CloseWindow(); + return 0; +} \ No newline at end of file -- cgit v1.2.3