diff options
| author | J08nY | 2016-04-18 09:04:18 +0200 |
|---|---|---|
| committer | J08nY | 2016-04-18 09:04:18 +0200 |
| commit | 25fe435ae88418ac99628d041027d6b874dea006 (patch) | |
| tree | 5c7fc78e925c3c73c7ef3d2ab816517621e0423c /game.ts | |
| parent | b40e5134ede79e3944f27bfd978f434d0eb6982b (diff) | |
| download | ld35-25fe435ae88418ac99628d041027d6b874dea006.tar.gz ld35-25fe435ae88418ac99628d041027d6b874dea006.tar.zst ld35-25fe435ae88418ac99628d041027d6b874dea006.zip | |
Diffstat (limited to 'game.ts')
| -rw-r--r-- | game.ts | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |
