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 /Player.h | |
parent | 7c9c492f1555bb84a43fc68a56f69c25b54e7346 (diff) | |
download | bullethell2022-97975da88cb25952af0c5ec75c130c66595d1807.zip bullethell2022-97975da88cb25952af0c5ec75c130c66595d1807.tar.gz bullethell2022-97975da88cb25952af0c5ec75c130c66595d1807.tar.bz2 |
Added controller for player character
Diffstat (limited to 'Player.h')
-rw-r--r-- | Player.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,9 +1,12 @@ #pragma once +#include <memory> #include <vector> #include <raylib.h> +#include "Controller.h" + struct Player { @@ -12,6 +15,9 @@ struct Player void draw(); template<typename T> bool collide(const std::vector<T>& bullets) const; Vector2 m_position; + Vector2 m_velocity; + std::unique_ptr<Controller> m_controller; }; + #include "Player-inl.h" |