From: MegaBrutal Date: Thu, 28 Dec 2017 00:15:00 +0000 (+0100) Subject: Remove the first monster X-Git-Url: http://git.megabrutal.com/?p=ld40.git;a=commitdiff_plain;h=eef1b7028b56916c6dd0c91e538ebb12cbab13de;hp=98934c1cc490e5de98fd1f210bbed6618c5c3063 Remove the first monster 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 --- diff --git a/ld40.js b/ld40.js index 2c8a2b0..892e1b1 100644 --- a/ld40.js +++ b/ld40.js @@ -257,9 +257,7 @@ 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();