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:
parent
9e3e347e4a
commit
a67d25ee10
10 changed files with 64 additions and 66 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue