From 97975da88cb25952af0c5ec75c130c66595d1807 Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 18 Apr 2022 12:39:58 +0200 Subject: Added controller for player character --- Player.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Player.h') 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 #include #include +#include "Controller.h" + struct Player { @@ -12,6 +15,9 @@ struct Player void draw(); template bool collide(const std::vector& bullets) const; Vector2 m_position; + Vector2 m_velocity; + std::unique_ptr m_controller; }; + #include "Player-inl.h" -- cgit v1.1