summaryrefslogtreecommitdiffhomepage
path: root/Player.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-18 12:39:58 +0200
committerAki <please@ignore.pl>2022-04-18 12:39:58 +0200
commit97975da88cb25952af0c5ec75c130c66595d1807 (patch)
tree4ae958a28819cfbd55882451651fe4497e12b292 /Player.h
parent7c9c492f1555bb84a43fc68a56f69c25b54e7346 (diff)
downloadbullethell2022-97975da88cb25952af0c5ec75c130c66595d1807.zip
bullethell2022-97975da88cb25952af0c5ec75c130c66595d1807.tar.gz
bullethell2022-97975da88cb25952af0c5ec75c130c66595d1807.tar.bz2
Added controller for player character
Diffstat (limited to 'Player.h')
-rw-r--r--Player.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Player.h b/Player.h
index b138edd..59e8282 100644
--- a/Player.h
+++ b/Player.h
@@ -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"