mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-16 17:51:47 +01:00
Added the Grid, Camera, Level system
Basic player Started (Barely) on the TextureManager And other fixes
This commit is contained in:
22
Game/Player.h
Normal file
22
Game/Player.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#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 };
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user