aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp16
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;
}
}