commit 305f368e91e0e3bf63b7444f9c83c4799440ce8a
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Mon Dec 19 16:05:35 2022 +0100

    correct the stars animation.
    corect number of stars earned in level 8.

diff --git a/src/main/java/org/distorted/external/RubikScores.java b/src/main/java/org/distorted/external/RubikScores.java
index 7d8320e6..f854423a 100644
--- a/src/main/java/org/distorted/external/RubikScores.java
+++ b/src/main/java/org/distorted/external/RubikScores.java
@@ -273,7 +273,7 @@ public class RubikScores
 
   public int computeNumStars(int level)
     {
-    return level>=LEVELS_SHOWN ? 50 : level;
+    return level>LEVELS_SHOWN ? 50 : level;
     }
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/main/java/org/distorted/overlays/OverlayStars.java b/src/main/java/org/distorted/overlays/OverlayStars.java
index fc39d8b4..00febff2 100644
--- a/src/main/java/org/distorted/overlays/OverlayStars.java
+++ b/src/main/java/org/distorted/overlays/OverlayStars.java
@@ -34,6 +34,7 @@ import org.distorted.library.type.Dynamic;
 import org.distorted.library.type.Dynamic1D;
 import org.distorted.library.type.Dynamic2D;
 import org.distorted.library.type.Dynamic3D;
+import org.distorted.library.type.Dynamic4D;
 import org.distorted.library.type.Static1D;
 import org.distorted.library.type.Static2D;
 import org.distorted.library.type.Static3D;
@@ -268,7 +269,7 @@ public class OverlayStars extends OverlayGeneric implements EffectListener
       mScreen = screen;
       mListener= listener;
       DataStars stars = (DataStars)data;
-      mTotalStars = 7;//stars.getTotal();
+      mTotalStars = stars.getTotal();
       mNewStars   = stars.getNew();
       Resources res = stars.getResources();
       mWidth = mScreen.getWidth();
@@ -292,22 +293,27 @@ public class OverlayStars extends OverlayGeneric implements EffectListener
    private PostprocessEffectGlow constructGlow(boolean firstPhase)
       {
       Dynamic2D haloRadius = new Dynamic2D(DUR_GLO,0.5f);
-      Static2D point0 = new Static2D( 0, 0);
-      Static2D point1 = new Static2D(15,50);
+      Static2D point20 = new Static2D( 0, 0);
+      Static2D point21 = new Static2D(15,50);
+      Dynamic4D color = new Dynamic4D(DUR_GLO, 0.5f);
+      Static4D point40 = new Static4D(1,1,1,0.0f);
+      Static4D point41 = new Static4D(1,1,1,0.8f);
 
       if( firstPhase )
          {
-         haloRadius.add(point0);
-         haloRadius.add(point1);
+         haloRadius.add(point20);
+         haloRadius.add(point21);
+         color.add(point40);
+         color.add(point41);
          }
       else
          {
-         haloRadius.add(point1);
-         haloRadius.add(point0);
+         haloRadius.add(point21);
+         haloRadius.add(point20);
+         color.add(point41);
+         color.add(point40);
          }
 
-      Static4D color = new Static4D(1,1,1,0.5f);
-
       PostprocessEffectGlow glow = new PostprocessEffectGlow(haloRadius,color);
       glow.setQuality(EffectQuality.MEDIUM);
       glow.notifyWhenFinished(this);
