summaryrefslogtreecommitdiff
path: root/game.ts
diff options
context:
space:
mode:
authorJ08nY2016-04-18 09:04:18 +0200
committerJ08nY2016-04-18 09:04:18 +0200
commit25fe435ae88418ac99628d041027d6b874dea006 (patch)
tree5c7fc78e925c3c73c7ef3d2ab816517621e0423c /game.ts
parentb40e5134ede79e3944f27bfd978f434d0eb6982b (diff)
downloadld35-25fe435ae88418ac99628d041027d6b874dea006.tar.gz
ld35-25fe435ae88418ac99628d041027d6b874dea006.tar.zst
ld35-25fe435ae88418ac99628d041027d6b874dea006.zip
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) {