#include "Player.h" #include Player::Player() : m_position {400, 450} { } void Player::update(const float dt) { if (IsKeyDown(KEY_LEFT)) m_position.x -= dt * 80; if (IsKeyDown(KEY_RIGHT)) m_position.x += dt * 80; } void Player::draw() { DrawCircle(m_position.x, m_position.y, 10, LIGHTGRAY); }