aboutsummaryrefslogtreecommitdiff
path: root/src/games/snake/Snake.hpp
diff options
context:
space:
mode:
authorfschildt <florian.schildt@protonmail.com>2025-10-01 14:08:24 +0200
committerfschildt <florian.schildt@protonmail.com>2025-10-01 14:09:13 +0200
commitc775ca6133d93ed97359a6a50bd94a5563c740de (patch)
tree9d3efb1c7e7538ff9d5cae408d2c29f9dd3daeab /src/games/snake/Snake.hpp
parent41c2e2ecfcccf62b3c646980dd283848e33a8134 (diff)
general refactoring, prepare breakout game
Diffstat (limited to 'src/games/snake/Snake.hpp')
-rw-r--r--src/games/snake/Snake.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/games/snake/Snake.hpp b/src/games/snake/Snake.hpp
index 1223cbe..51d98fb 100644
--- a/src/games/snake/Snake.hpp
+++ b/src/games/snake/Snake.hpp
@@ -1,7 +1,7 @@
#pragma once
#include <games/Game.hpp>
-#include <basic/math.hpp>
+#include <common/math.hpp>
#include <random>
@@ -9,10 +9,10 @@
class Snake : public Game {
public:
enum Direction : int32_t {
- DIRECTION_UP,
- DIRECTION_DOWN,
- DIRECTION_LEFT,
- DIRECTION_RIGHT,
+ up,
+ down,
+ left,
+ right,
};