/*********************************/ /* YABS ( // */ /* main ( )/ */ /* by salade )(/ */ /* ________________ ( /) */ /* ()__)____________))))) :^} */ /*********************************/ #include #include "yabs_core.h" #include "yabs_utils.h" static yabs::core::gameState game_state = yabs::core::GAMEPLAY; int main(void) { // create window InitWindow(YABS_SCREENWIDTH, YABS_SCREENHEIGHT, YABS_TITLE); bool started = false; // game loop while (!WindowShouldClose()) { switch (game_state) { case (yabs::core::TITLE): { if (IsKeyPressed(KEY_ENTER)) { game_state = yabs::core::GAMEPLAY; } break; } case (yabs::core::PICK): { break; } case (yabs::core::DEATH): { break; } case (yabs::core::GAMEPLAY): { if (!started) { started = true; yabs::core::init_game(); } break; } case (yabs::core::NEXT): { break; } case (yabs::core::ENDING): { break; } } } CloseWindow(); return (0); }