Tiles now record their textures and this is loaded from the map then converted to an indexed integer on the fly.

This commit is contained in:
Zed A. Shaw 2025-01-31 13:37:01 -05:00
parent 9e3e347e4a
commit a67d25ee10
10 changed files with 64 additions and 66 deletions

View file

@ -15,7 +15,7 @@ void Animator::step(sf::Sprite& sprite, int rect_x, int rect_y, int rect_w, int
{rect_w, rect_h}}));
}
void Animator::play() {
void Animator::play(bool sound_too) {
playing = true;
sound.play();
if(sound_too) sound.play();
}