Add fly animations

This commit is contained in:
Bram Verhulst
2024-05-29 00:00:29 +02:00
parent 3c83e566dd
commit e1165fdcb4
31 changed files with 580 additions and 157 deletions

View File

@@ -21,6 +21,9 @@ void Text::Draw(const Vector2f& pos) const {
}
}
void Text::ChangeText(const std::string& text) {
if(m_Text == text) {
return;
}
if(m_IsCreatedOk && m_Texture->IsCreationOk()) {
delete m_Texture;
m_Texture = new Texture(text, m_FontPath, m_Size, m_Color);