diff --git a/data/config/assets.txt b/data/config/assets.txt index 7f25b3b..dfe68c7 100644 --- a/data/config/assets.txt +++ b/data/config/assets.txt @@ -56,12 +56,12 @@ SOUND|${PREFIX}/data/sound/tabe_hit.wav SOUND|${PREFIX}/data/sound/tabe.wav SOUND|${PREFIX}/data/sound/title.wav SOUND|${PREFIX}/data/sound/voice_aw_aw_aw.wav -SOUND|${PREFIX}/data/sound/voice_brbrbr.wav SOUND|${PREFIX}/data/sound/voice_coffee.wav SOUND|${PREFIX}/data/sound/voice_credit_thankyou.wav SOUND|${PREFIX}/data/sound/voice_get_ready.wav SOUND|${PREFIX}/data/sound/voice_no.wav SOUND|${PREFIX}/data/sound/voice_power_up.wav +SOUND|${PREFIX}/data/sound/voice_recover.wav SOUND|${PREFIX}/data/sound/voice_thankyou.wav SOUND|${PREFIX}/data/sound/walk.wav diff --git a/data/sound/voice_brbrbr.wav b/data/sound/voice_brbrbr.wav deleted file mode 100644 index 294bb08..0000000 Binary files a/data/sound/voice_brbrbr.wav and /dev/null differ diff --git a/data/sound/voice_recover.wav b/data/sound/voice_recover.wav new file mode 100644 index 0000000..326a9ff Binary files /dev/null and b/data/sound/voice_recover.wav differ diff --git a/source/player.cpp b/source/player.cpp index 9867521..2358fd2 100644 --- a/source/player.cpp +++ b/source/player.cpp @@ -22,17 +22,7 @@ // Constructor Player::Player(const Config &config) - : player_sprite_(std::make_unique(config.texture.at(0), config.animations.at(0))), - power_sprite_(std::make_unique(config.texture.at(4), config.animations.at(1))), - enter_name_(std::make_unique()), - hi_score_table_(config.hi_score_table), - glowing_entry_(config.glowing_entry), - stage_info_(config.stage_info), - play_area_(*config.play_area), - id_(config.id), - default_pos_x_(config.x), - default_pos_y_(config.y), - demo_(config.demo) { + : player_sprite_(std::make_unique(config.texture.at(0), config.animations.at(0))), power_sprite_(std::make_unique(config.texture.at(4), config.animations.at(1))), enter_name_(std::make_unique()), hi_score_table_(config.hi_score_table), glowing_entry_(config.glowing_entry), stage_info_(config.stage_info), play_area_(*config.play_area), id_(config.id), default_pos_x_(config.x), default_pos_y_(config.y), demo_(config.demo) { // Configura objetos player_sprite_->addTexture(config.texture.at(1)); player_sprite_->addTexture(config.texture.at(2)); @@ -199,7 +189,7 @@ void Player::handlePlayingMovement() { } void Player::handleRecoverMovement() { - if (player_sprite_->getCurrentAnimationFrame() == 10) { playSound("voice_brbrbr.wav"); } + if (player_sprite_->getCurrentAnimationFrame() == 10) { playSound("voice_recover.wav"); } if (player_sprite_->animationIsCompleted()) { setPlayingState(State::RESPAWNING); } }