#include #include #include #include #include "gunner/config.h" #include "gunner/utils.h" #include "gunner/text.c" #include "gunner/texture_sys.c" #include "gunner/shader_sys.c" #include "gunner/controller.c" #include "gunner/rumble.c" #include "gunner/rand_sys.c" #include "gunner/audio_sys.c" #include "game/config.h" int main() { SetTraceLogLevel(LOG_WARNING); InitWindow(GAME_WIDTH * DEFAULT_SCALE, GAME_HEIGHT * DEFAULT_SCALE, GAME_NAME); SetTargetFPS(FRAMERATE); InitAudioDevice(); rand_seed(); init_tex_sys(); init_shader_sys(); i32 idx = load_font("assets/berry-rotunda.ttf"); while(!WindowShouldClose()){ float dt = GetFrameTime(); poll_rumble(dt); update_audio(); update_textures(); update_shaders(); ClearBackground(WHITE); BeginDrawing(); draw_text_font(idx, "Uneven Prankster Presents", (vec2){TO_FIXED(4), TO_FIXED(4)}, 16, BLACK); EndDrawing(); } unload_all_fonts(); unload_active_audio(); unload_current_music(); unload_active_textures(); unload_active_shaders(); CloseAudioDevice(); CloseWindow(); return 0; }