mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-16 04:21:48 +01:00
23 lines
325 B
C++
23 lines
325 B
C++
#pragma once
|
|
|
|
class WorldLevel;
|
|
class Player
|
|
{
|
|
public:
|
|
|
|
Player(const Point2f& Position);
|
|
void Update(float elapsedTime, const WorldLevel& level);
|
|
void Draw() const;
|
|
|
|
private:
|
|
Point2f m_Position{};
|
|
Point2f m_Size{};
|
|
|
|
Point2f m_Vel{};
|
|
|
|
Point2f m_Acc{};
|
|
Point2f m_Gravity{ 0, -9.81f };
|
|
float m_MaxSpeed{ 200 };
|
|
|
|
};
|