fix niveaux

This commit is contained in:
MOISOIU Stefan-Mihai
2026-03-16 16:47:27 +01:00
parent 3dd0408323
commit 7639df7abd
3 changed files with 28 additions and 7 deletions

View File

@@ -78,7 +78,7 @@ public class Ligne extends ObjetGraphique {
double limiteBas = gestionnaireNiveau.getLimiteBas();
double hauteur = limiteBas - limiteHaut;
double bruit = noiseGenerator.noise(noisePos);
double bruit = noiseGenerator.noise(noisePos, 1);
double normalise = (bruit + 1) / 2;
return limiteBas - normalise * hauteur;