From be2734a7935031b1539acb81dafc7f080c4426ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathis=20Rib=C3=A9mont?= Date: Mon, 31 Jan 2022 11:40:51 +0100 Subject: [PATCH] main de base --- Pontu/entryPoints/main.c | 13 +++++++++++++ Pontu/include/engine/GeneralState.h | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 Pontu/entryPoints/main.c diff --git a/Pontu/entryPoints/main.c b/Pontu/entryPoints/main.c new file mode 100644 index 0000000..0a8260d --- /dev/null +++ b/Pontu/entryPoints/main.c @@ -0,0 +1,13 @@ +#include +#include +#include "engine/GeneralState.h" + +int main(int argc, char const *argv[]) { + GeneralState generalState = GS_MainMenu; + + while(generalState != GS_Quit){ + + } + + return 0; +} diff --git a/Pontu/include/engine/GeneralState.h b/Pontu/include/engine/GeneralState.h index 9bf3d7f..75a107b 100644 --- a/Pontu/include/engine/GeneralState.h +++ b/Pontu/include/engine/GeneralState.h @@ -1,6 +1,6 @@ #ifndef GENERAL_STATE_INCLUDED #define GENERAL_STATE_INCLUDED -typedef enum {GS_MainMenu, GS_GameCreationMenu, GS_Game, GS_EndOfGameMenu} GeneralState; +typedef enum {GS_MainMenu, GS_GameCreationMenu, GS_Game, GS_EndOfGameMenu, GS_Quit} GeneralState; #endif //GENERAL_STATE_INCLUDED