diff --git a/main.c b/main.c index 5931be5..b83f10d 100644 --- a/main.c +++ b/main.c @@ -58,6 +58,9 @@ Rectangle grid = {0}; const Color text_color = BLACK; const Color hover_color = RED; +float timer = 0.0f; +int need_to_fill = 1; + #define INIT_TEXTURE(img, tex) \ Image img = {0}; \ Texture tex = {0} @@ -140,7 +143,7 @@ int count_bomb(int x, int y) return count; } -void fill_game(void) +void setup_game(void) { switch (current_game_type) { case BEGINNER: @@ -167,11 +170,18 @@ void fill_game(void) default: assert(0 && "game mode not supported"); } +} +void fill_game(int click_x, int click_y) +{ + setup_game(); for (int i=0; i