#define _POSIX_C_SOURCE 200809L #define NONSTD_IMPLEMENTATION #define VFS_IMPLEMENTATION #include "all.h" int main(void) { SetConfigFlags(FLAG_VSYNC_HINT | FLAG_WINDOW_RESIZABLE | FLAG_WINDOW_HIGHDPI); InitWindow(WINDOW_WIDTH, WINDOW_HEIGHT, WINDOW_TITLE); int monitor = GetCurrentMonitor(); SetWindowPosition((GetMonitorWidth(monitor) - GetScreenWidth()) / 2, (GetMonitorHeight(monitor) - GetScreenHeight()) / 2); SetTargetFPS(GetMonitorRefreshRate(monitor)); vfs_init("data.pak"); InitGame(); game.vsync = true; while (!WindowShouldClose()) { UpdateGame(); DrawGame(); } vfs_shutdown(); CloseWindow(); return 0; }