convertit Asset i Audio

This commit is contained in:
2025-05-27 11:06:17 +02:00
parent 9bc07b2bcb
commit ada141cb09
29 changed files with 493 additions and 472 deletions

View File

@@ -221,7 +221,7 @@ void Player::move()
++step_counter_;
if (step_counter_ % 10 == 0)
{
Audio::get()->playSound("walk.wav");
Audio::get().playSound("walk.wav");
}
switch (id_)
@@ -252,7 +252,7 @@ void Player::move()
++step_counter_;
if (step_counter_ % 10 == 0)
{
Audio::get()->playSound("walk.wav");
Audio::get().playSound("walk.wav");
}
switch (id_)
@@ -752,7 +752,7 @@ void Player::decContinueCounter()
}
else
{
Audio::get()->playSound("continue_clock.wav");
Audio::get().playSound("continue_clock.wav");
}
}
@@ -798,5 +798,5 @@ void Player::shiftSprite()
void Player::playRandomBubbleSound()
{
const std::vector<std::string> sounds = {"bubble1.wav", "bubble2.wav", "bubble3.wav", "bubble4.wav"};
Audio::get()->playSound(sounds.at(rand() % sounds.size()));
Audio::get().playSound(sounds.at(rand() % sounds.size()));
}