From 7e61100fd5e9d818f4029c3c23b91ff6ba0d9d86 Mon Sep 17 00:00:00 2001 From: matthew-java Date: Tue, 17 Mar 2026 14:31:30 +0100 Subject: [PATCH] changement frequence spwan bonus/malus fonctionnelle --- src/linea/Jeu.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/linea/Jeu.java b/src/linea/Jeu.java index 916ec6f..54449d1 100644 --- a/src/linea/Jeu.java +++ b/src/linea/Jeu.java @@ -166,8 +166,8 @@ public class Jeu implements KeyListener, ActionListener { score = 0; labScore.setText("

score : 0

"); - 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); } }