Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor cleanup and comment.

  • Loading branch information...
commit 785e8d887f2f27f1588cc1c3b189a7ba11417440 1 parent f62a29f
chris dillon authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 Level.pde
4 Level.pde
View
@@ -7,10 +7,10 @@ public class Level {
HashMap rules = new HashMap();
public Level() {
+ // create level rules that accelerate gameplay
int j=0;
for (float i=1.0f; i > 0.00f; i-=0.05f) {
float t = Math.round(i * 100.0) / 100.0;
-
rules.put(j++, t);
// println("RULES: level"+j+" = speed:"+t);
}
@@ -21,7 +21,6 @@ public class Level {
return (Float)rules.get(this.level);
} else {
// anything beyond max level, just stay at this speed
- // level 20 = 0.05f speed
return 0.05f;
}
}
@@ -36,7 +35,6 @@ public class Level {
} else if (lines < 100) {
this.level = (lines / 5) + 1;
} else {
- // level 20 = 0.05f speed
this.level = 20;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.