projects
/
ld38.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bc05df
)
There should be one less crystals – corrected
author
MegaBrutal
<code+git@megabrutal.com>
Mon, 24 Apr 2017 12:19:06 +0000
(14:19 +0200)
committer
MegaBrutal
<code+git@megabrutal.com>
Mon, 24 Apr 2017 12:19:06 +0000
(14:19 +0200)
modified: ld38.js
ld38.js
patch
|
blob
|
history
diff --git
a/ld38.js
b/ld38.js
index 6e882beea09d7aed86d2556f0567443c6f07a917..f99fd63a12b60efe9298a767e7f5373d4ee39720 100644
(file)
--- a/
ld38.js
+++ b/
ld38.js
@@
-89,7
+89,7
@@
walls.children.forEach(function(wall) { wall.body.immovable = true; });
gems = game.add.group();
- for (var i = 0; i <
=
MAX_GEMS; i++)
+ for (var i = 0; i < MAX_GEMS; i++)
gems.add(new Gem((Math.random() * (game.world.width - (WALL_THICKNESS * 4))) + (WALL_THICKNESS * 2), (Math.random() * (game.world.height - (WALL_THICKNESS * 4))) + (WALL_THICKNESS * 2)));
gems.children.forEach(function(gem) { gem.enablePhysics(); });