diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 21 |
1 files changed, 21 insertions, 0 deletions
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 <stdio.h> +#include <raylib.h> +#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 |