update:Boule

This commit is contained in:
2026-03-28 14:31:55 +01:00
parent 1e7f70ab6b
commit b9dad77420
16 changed files with 41 additions and 20 deletions

View File

@@ -114,7 +114,7 @@ public class ZoneDessin extends JPanel {
int intervalleBoule = (int) Math.round(intervalleBouleBase - progression * 20.0); // ~165 -> 145
double probaVerteBase = 0.35 - progression * 0.06; // ~35% -> 29%
double variationAleatoire = (Math.random() - 0.5) * 0.10; // +/- 5%
double probaVerte = Math.max(0.22, Math.min(0.45, probaVerteBase + variationAleatoire));
double probaVerte = Math.max(0.24, Math.min(0.47, probaVerteBase + variationAleatoire + 0.02));
compteurBoule++;
if (compteurBoule >= intervalleBoule && ligneObjet != null) {