Add Alot
This commit is contained in:
@@ -5,6 +5,8 @@ class Animation
|
||||
{
|
||||
public:
|
||||
Animation(Texture* pTexture, int frames, float frameDuration, Rectf srcRect, bool isLooping = true);
|
||||
~Animation() = default;
|
||||
|
||||
|
||||
void Update(float elapsedSec);
|
||||
void Draw(const Vector2f& pos) const;
|
||||
@@ -30,9 +32,9 @@ private:
|
||||
|
||||
float m_FrameDuration { 0.1f };
|
||||
|
||||
bool m_isPlaying { true };
|
||||
bool m_isFlipped { false };
|
||||
bool m_IsPlaying { true };
|
||||
bool m_IsFlipped { false };
|
||||
|
||||
bool m_isLooping { true };
|
||||
bool m_hasPlayedOnce { false };
|
||||
bool m_IsLooping { true };
|
||||
bool m_HasPlayedOnce { false };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user