diff options
author | 2025-05-20 20:01:01 +0200 | |
---|---|---|
committer | 2025-05-20 20:01:01 +0200 | |
commit | 618402caa489751d61643e6839607fd1546ad635 (patch) | |
tree | 3fa3e8d6dc1cd5a2c94987f9be13d1b76ba29bce /src/main/main.c | |
parent | 7f2339edd8449d79de2dc22fdfaa40658c5a201f (diff) | |
download | tris-618402caa489751d61643e6839607fd1546ad635.tar.gz tris-618402caa489751d61643e6839607fd1546ad635.zip |
Move all logic inside the game
Diffstat (limited to 'src/main/main.c')
-rw-r--r-- | src/main/main.c | 14 |
1 files changed, 2 insertions, 12 deletions
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 <GL/glx.h> #include <stdio.h> #include <stdlib.h> -#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; } |