diff options
author | salaaad2 <47527723+salaaad2@users.noreply.github.com> | 2022-08-20 23:47:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-20 23:47:23 +0200 |
commit | d9ede782a1975ebf0f60e7edd710376781b2183a (patch) | |
tree | 8acaae1139b449f885a4d212b56297fbd1c4a016 /src/main.cpp | |
parent | small refactor along with cube slaying (diff) | |
parent | something probably happenned I dunno (diff) | |
download | yabs-d9ede782a1975ebf0f60e7edd710376781b2183a.tar.gz yabs-d9ede782a1975ebf0f60e7edd710376781b2183a.tar.bz2 yabs-d9ede782a1975ebf0f60e7edd710376781b2183a.tar.xz yabs-d9ede782a1975ebf0f60e7edd710376781b2183a.tar.zst yabs-d9ede782a1975ebf0f60e7edd710376781b2183a.zip |
Merge pull request #1 from salaaad2/letsgo
Letsgo
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main.cpp b/src/main.cpp index 4ba1970..69702ad 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -10,7 +10,7 @@ #include "yabs_core.h" #include "yabs_utils.h" -static yabs::gameState game_state = yabs::GAMEPLAY; +static yabs::core::gameState game_state = yabs::core::GAMEPLAY; int main(void) { // create window @@ -20,20 +20,20 @@ int main(void) { // game loop while (!WindowShouldClose()) { switch (game_state) { - case (yabs::TITLE): { + case (yabs::core::TITLE): { if (IsKeyPressed(KEY_ENTER)) { - game_state = yabs::GAMEPLAY; + game_state = yabs::core::GAMEPLAY; } break; } - case (yabs::PICK): { + case (yabs::core::PICK): { break; } - case (yabs::DEATH): { + case (yabs::core::DEATH): { break; } - case (yabs::GAMEPLAY): { + case (yabs::core::GAMEPLAY): { if (!started) { started = true; @@ -41,10 +41,10 @@ int main(void) { } break; } - case (yabs::NEXT): { + case (yabs::core::NEXT): { break; } - case (yabs::ENDING): { + case (yabs::core::ENDING): { break; } } |