Remove the first monster balancing
authorMegaBrutal <code+git@megabrutal.com>
Thu, 28 Dec 2017 00:15:00 +0000 (01:15 +0100)
committerMegaBrutal <code+git@megabrutal.com>
Thu, 28 Dec 2017 00:15:00 +0000 (01:15 +0100)
Remove the very first monster that spawned in the game's create code
at a fixed location, as it intimidated some players. It's better to
let a few seconds for the player to accommodate with the movements
before the first monster spawns.

modified:   ld40.js

ld40.js

diff --git a/ld40.js b/ld40.js
index 2c8a2b0a3a558e75d53303414420077581d42b26..892e1b1d62239d0ec497f90ce9ad7b69bee19f2f 100644 (file)
--- a/ld40.js
+++ b/ld40.js
             nexttime_determination = Math.random() * WAIT_DETERMINATION;
 
             monsters = game.add.group();
-            monsters.add(new Monster(400, 500));
-            monsters.children.forEach(function(monster) { monster.enablePhysics(); });
-            nexttime_monsterspawn = WAIT_MONSTERSPAWN;
+            nexttime_monsterspawn = WAIT_MONSTERSPAWN / 4;
 
             player = new Player(game.world.width / 2, game.world.height / 2);
             player.enablePhysics();