changement frequence spwan bonus/malus fonctionnelle

This commit is contained in:
2026-03-17 14:31:30 +01:00
parent fdc3892ef4
commit 7e61100fd5

View File

@@ -166,8 +166,8 @@ public class Jeu implements KeyListener, ActionListener {
score = 0;
labScore.setText("<html><h3>score : 0</h3></html>");
this.prochainBonusScore = 300 + random.nextInt(201);
this.prochainMalusScore = 400 + random.nextInt(201);
this.prochainBonusScore = 50 + random.nextInt(101);
this.prochainMalusScore = 100 + random.nextInt(101);
}
@Override
@@ -202,7 +202,7 @@ public class Jeu implements KeyListener, ActionListener {
Malus malus = new Malus(xSpawn, yMalus, laligne.vitesseDefilement);
ecran.ajouterObjet(malus);
this.prochainMalusScore = score + 70 + random.nextInt(101);
this.prochainMalusScore = score + 100 + random.nextInt(101);
}
}