update:Boule
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user