aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-07-11 21:24:00 +0200
committersalaaad2 <arthurdurant263@gmail.com>2022-07-11 21:24:00 +0200
commit3e16eb8d2f15d40239bdf1f375daeab7bcdf95fa (patch)
treed22010b7852fc8dadf203678b10210a2937a9c1f /src/main.cpp
parentsmall refactor along with cube slaying (diff)
downloadyabs-3e16eb8d2f15d40239bdf1f375daeab7bcdf95fa.tar.gz
yabs-3e16eb8d2f15d40239bdf1f375daeab7bcdf95fa.tar.bz2
yabs-3e16eb8d2f15d40239bdf1f375daeab7bcdf95fa.tar.xz
yabs-3e16eb8d2f15d40239bdf1f375daeab7bcdf95fa.tar.zst
yabs-3e16eb8d2f15d40239bdf1f375daeab7bcdf95fa.zip
dod
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;
}
}