summaryrefslogtreecommitdiff
path: root/game.ts
diff options
context:
space:
mode:
Diffstat (limited to 'game.ts')
-rw-r--r--game.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/game.ts b/game.ts
index e244429..6ee4c70 100644
--- a/game.ts
+++ b/game.ts
@@ -485,7 +485,7 @@ class Level extends Physijs.Scene {
private ground:Physijs.BoxMesh;
private time:number = 0;
- static durations:number[] = [25, 30, -1];
+ static durations:number[] = [25, 30, 45, Infinity];
static numLevels:number = Level.durations.length;
static mat:Physijs.Material = Physijs.createMaterial(
@@ -611,7 +611,7 @@ class Level extends Physijs.Scene {
//spawn new mob?
let amount = 0.004 * ((this.level+1)/2+0.8);
if(this.level == Level.numLevels-1){
- amount+=this.time/100000;
+ amount+=(this.time/1000)/2000;
}
if (Math.random() < amount) {