Add Building, Add Hard floors

This commit is contained in:
Bram Verhulst
2024-04-18 15:39:18 +02:00
parent db83ae5e13
commit ebda39f690
17 changed files with 149 additions and 216 deletions

View File

@@ -68,6 +68,9 @@ private:
Vector2f m_Acc;
Vector2f m_Gravity { 0, -9.81f };
float m_BobTimer{ 0.0f };
const float m_BobTime{ 0.1f };
bool m_BobUp{ true };
Vector2f m_DigDestination{};
float m_DigProgress{};
@@ -79,7 +82,10 @@ private:
bool m_Grounded { false };
bool m_DidJustDigRight { false };
Animation* m_currentAnimation{ nullptr };
Animation* m_walkAnimation;
Animation* m_turnAnimation;
Animation* m_digAnimation;
PlayerState m_State { PlayerState::Idle };
PlayerDirection m_Direction { PlayerDirection::Right };