projects
/
ld40.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove the first monster
[ld40.git]
/
ld40.js
diff --git
a/ld40.js
b/ld40.js
index 2c8a2b0a3a558e75d53303414420077581d42b26..892e1b1d62239d0ec497f90ce9ad7b69bee19f2f 100644
(file)
--- a/
ld40.js
+++ b/
ld40.js
@@
-257,9
+257,7
@@
nexttime_determination = Math.random() * WAIT_DETERMINATION;
monsters = game.add.group();
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();
player = new Player(game.world.width / 2, game.world.height / 2);
player.enablePhysics();