afegida veu: good job commander

calibrats els volumnes de musica i efectes
afegida forma: ship2.shp
canviat tamany de textos de canvi de pantalla
This commit is contained in:
2025-12-04 18:27:39 +01:00
parent 1dd87c0707
commit 789cbbc593
8 changed files with 38 additions and 9 deletions

View File

@@ -244,6 +244,7 @@ void EscenaJoc::actualitzar(float delta_time) {
auto& spawn_ctrl = stage_manager_->get_spawn_controller();
if (spawn_ctrl.tots_enemics_destruits(orni_)) {
stage_manager_->stage_completat();
Audio::get()->playSound(Defaults::Sound::GOOD_JOB_COMMANDER, Audio::Group::GAME);
break;
}
}
@@ -573,8 +574,8 @@ void EscenaJoc::detectar_col·lisio_nau_enemics() {
// [NEW] Stage system helper methods
void EscenaJoc::dibuixar_missatge_stage(const std::string& missatge) {
constexpr float escala = 1.5f;
constexpr float spacing = 3.0f;
constexpr float escala = 1.0f;
constexpr float spacing = 2.0f;
float text_width = text_.get_text_width(missatge, escala, spacing);
float text_height = text_.get_text_height(escala);