game fix: la velocitat dels globos dins de la fase actual muntava al primer globo explotat

game fix: al trencar una powerball ja no eixien mes globos
style: renombrades variables i funcions
This commit is contained in:
2025-08-14 20:41:44 +02:00
parent 8fcb7d1eb5
commit 3964503f1c
12 changed files with 38 additions and 39 deletions

View File

@@ -603,10 +603,10 @@ void Player::update() {
}
// Incrementa la puntuación del jugador
void Player::addScore(int score, int last_hi_score_entry) {
void Player::addScore(int score, int lowest_hi_score_entry) {
if (isPlaying()) {
score_ += score;
qualifies_for_high_score_ = score_ > last_hi_score_entry;
qualifies_for_high_score_ = score_ > lowest_hi_score_entry;
}
}