diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-01-30 09:41:31 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-01-30 09:41:31 -0500 |
commit | 410f971972bde37fb852420ea2ca0e2f69f27256 (patch) | |
tree | 73262614d4688e4f9a26c97557db5720b049029e /src/game.h | |
parent | 78e5bd2e622204d0deab252d9b2ab90c3095b67d (diff) | |
download | tanetane-410f971972bde37fb852420ea2ca0e2f69f27256.tar.gz tanetane-410f971972bde37fb852420ea2ca0e2f69f27256.tar.bz2 tanetane-410f971972bde37fb852420ea2ca0e2f69f27256.zip |
Encapsulated some player movement stuff
Imported vector from therapy5
Diffstat (limited to 'src/game.h')
-rw-r--r-- | src/game.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game.h b/src/game.h index 46f1ab2..bb99543 100644 --- a/src/game.h +++ b/src/game.h | |||
@@ -4,6 +4,13 @@ | |||
4 | #include <vector> | 4 | #include <vector> |
5 | #include "sprite.h" | 5 | #include "sprite.h" |
6 | 6 | ||
7 | struct Input { | ||
8 | bool left = false; | ||
9 | bool right = false; | ||
10 | bool up = false; | ||
11 | bool down = false; | ||
12 | }; | ||
13 | |||
7 | class Game { | 14 | class Game { |
8 | public: | 15 | public: |
9 | 16 | ||