/*********************************/ /* YABS ( // */ /* main ( )/ */ /* by salade )(/ */ /* ________________ ( /) */ /* ()__)____________))))) :^} */ /*********************************/ #include #include "yabs_core.h" #include "yabs_utils.h" static yabs::gameState game_state = yabs::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::TITLE): { if (IsKeyPressed(KEY_ENTER)) { game_state = yabs::GAMEPLAY; } break; } case (yabs::PICK): { break; } case (yabs::DEATH): { break; } case (yabs::GAMEPLAY): { if (!started) { started = true; yabs::core::init_game(); } break; } case (yabs::NEXT): { break; } case (yabs::ENDING): { break; } } } CloseWindow(); return (0); }