diff options
author | Aki <please@ignore.pl> | 2022-04-18 12:39:58 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-04-18 12:39:58 +0200 |
commit | 97975da88cb25952af0c5ec75c130c66595d1807 (patch) | |
tree | 4ae958a28819cfbd55882451651fe4497e12b292 /KeyboardController.h | |
parent | 7c9c492f1555bb84a43fc68a56f69c25b54e7346 (diff) | |
download | bullethell2022-97975da88cb25952af0c5ec75c130c66595d1807.zip bullethell2022-97975da88cb25952af0c5ec75c130c66595d1807.tar.gz bullethell2022-97975da88cb25952af0c5ec75c130c66595d1807.tar.bz2 |
Added controller for player character
Diffstat (limited to 'KeyboardController.h')
-rw-r--r-- | KeyboardController.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/KeyboardController.h b/KeyboardController.h new file mode 100644 index 0000000..98b5c6f --- /dev/null +++ b/KeyboardController.h @@ -0,0 +1,16 @@ +#pragma once + +#include <raylib.h> + +#include "Controller.h" + + +class KeyboardController : public Controller +{ +public: + KeyboardController(); + Vector2 direction() override; +private: + int x_axis; + int y_axis; +}; |