From 5a58534a40ebbe7a62264d3d4263c9a61c42d65d Mon Sep 17 00:00:00 2001 From: MOISOIU Stefan-Mihai <66520304+stefanmoisoiu@users.noreply.github.com> Date: Mon, 16 Mar 2026 16:17:30 +0100 Subject: [PATCH] fix niveaux --- src/GestionnaireNiveau.java | 21 ++++++++++----------- src/Ligne.java | 2 +- src/Niveau.java | 2 +- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/src/GestionnaireNiveau.java b/src/GestionnaireNiveau.java index 8b853b9..7141972 100644 --- a/src/GestionnaireNiveau.java +++ b/src/GestionnaireNiveau.java @@ -6,42 +6,41 @@ import java.util.List; public class GestionnaireNiveau { - public static final int FRAMES_PAR_NIVEAU = 25 * 10; // 10s a 25 FPS (timer 40ms) + public static final int FRAMES_PAR_NIVEAU = 25 * 10; // 10 secondes private final List niveaux = new ArrayList<>(); private int indexNiveau = 0; private int framesDepuisDebut = 0; private int framesDansNiveau = 0; - // Duree du fade en frames - private static final int DUREE_FADE = 75; // 3 secondes + private static final int DUREE_FADE = 25 * 3; // 3 secondes public GestionnaireNiveau() { - // Niveau 1 : lisse, cercle large + // Niveau 1 niveaux.add(new Niveau(1, - new Color(0, 73, 220), + new Color(112, 158, 251), 8, 1 / 80.0, 80, 100, 500)); // Niveau 2 niveaux.add(new Niveau(2, - new Color(75, 0, 180), + new Color(187, 138, 255), 10, 1 / 60.0, 60, 100, 500)); // Niveau 3 niveaux.add(new Niveau(3, - new Color(83, 30, 39), + new Color(255, 106, 132), 12, 1 / 40.0, 50, 100, 500)); // Niveau 4 niveaux.add(new Niveau(4, - new Color(20, 100, 40), - 14, 1 / 30.0, 40, 100, 500)); + new Color(191, 255, 207), + 14, 1 / 35.0, 40, 100, 500)); - // Niveau 5 : chaos, cercle petit + // Niveau 5 niveaux.add(new Niveau(5, new Color(30, 30, 30), - 16, 1 / 20.0, 30, 100, 500)); + 15, 1 / 30.0, 30, 100, 500)); } public void mettreAJour() { diff --git a/src/Ligne.java b/src/Ligne.java index 3452152..77d0e68 100644 --- a/src/Ligne.java +++ b/src/Ligne.java @@ -8,7 +8,7 @@ import java.util.ArrayList; public class Ligne extends ObjetGraphique { - protected int nbSegments = 80; + protected int nbSegments = 50; protected Segment SegCourant; protected ArrayList listeSegments = new ArrayList(); diff --git a/src/Niveau.java b/src/Niveau.java index cf6696f..8f8c516 100644 --- a/src/Niveau.java +++ b/src/Niveau.java @@ -7,7 +7,7 @@ public class Niveau { public final int numero; public final Color couleurFond; public final double vitesseScroll; - public final double noiseFrequence; // vitesse d'avancement dans le noise + public final double noiseFrequence; public final double rayonCercle; public final double limiteHaut; public final double limiteBas;