From 618402caa489751d61643e6839607fd1546ad635 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Tue, 20 May 2025 20:01:01 +0200 Subject: Move all logic inside the game --- src/main/main.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'src/main/main.c') diff --git a/src/main/main.c b/src/main/main.c index 9014c3a..0f39200 100644 --- a/src/main/main.c +++ b/src/main/main.c @@ -21,25 +21,15 @@ #include #include #include -#include "engine/ui/ui.h" #include "engine/engine.h" #include "game/game.h" #define WIDTH 640 #define HEIGHT 480 -void -draw_frame() -{ - game_draw_field(0.5, 0, 0); -} - int main(void) { - engine_init(WIDTH, HEIGHT); - ui_set_title("Tris Game"); - draw_frame(); - - engine_loop(); + game_init(WIDTH, HEIGHT); + game_start(); return EXIT_SUCCESS; } -- cgit v1.2.3