Project

General

Profile

« Previous | Next » 

Revision d7f0c07d

Added by Leszek Koltunski over 1 year ago

Beginnings of support for 'Overlays': first overlay will be the rotating star which little stars fly to when one solves a level for the first time.

View differences:

src/main/java/org/distorted/objects/RubikObjectList.java
20 20
import org.distorted.main.RubikActivity;
21 21
import org.distorted.objectlib.main.ObjectSignatures;
22 22
import org.distorted.objectlib.main.ObjectType;
23
import org.distorted.screens.RubikScreenPlay;
24 23

  
25 24
import static org.distorted.objectlib.main.TwistyObject.MESH_NICE;
26 25
import static org.distorted.objectlib.main.ObjectType.NUM_OBJECTS;
27 26
import static org.distorted.main.RubikActivity.SHOW_DOWNLOADED_DEBUG;
28 27
import static org.distorted.main.RubikActivity.SHOW_SOLVED_DEBUG;
28
import static org.distorted.screens.RubikScreenPlay.LEVELS_SHOWN;
29 29

  
30 30
///////////////////////////////////////////////////////////////////////////////////////////////////
31 31

  
......
147 147
    return true;
148 148
    }
149 149

  
150
///////////////////////////////////////////////////////////////////////////////////////////////////
151

  
152
  public static int computeNumStars(int level)
153
    {
154
    return level>=LEVELS_SHOWN ? 50 : level+1;
155
    }
156

  
150 157
///////////////////////////////////////////////////////////////////////////////////////////////////
151 158

  
152 159
  private static void restoreFreedObjects(SharedPreferences preferences)
......
210 217
    {
211 218
    RubikScores scores = RubikScores.getInstance();
212 219
    int numObjects = RubikObjectList.getNumObjects();
213
    int level = RubikScreenPlay.LEVELS_SHOWN;
220
    int level = LEVELS_SHOWN;
214 221
    int ret = 0;
215 222

  
216 223
    for(int obj=0; obj<numObjects; obj++)

Also available in: Unified diff