projects
/
ld38.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
daacc35
)
Changed player starting position
author
MegaBrutal
<code+git@megabrutal.com>
Mon, 24 Apr 2017 01:29:13 +0000
(
03:29
+0200)
committer
MegaBrutal
<code+git@megabrutal.com>
Mon, 24 Apr 2017 01:29:13 +0000
(
03:29
+0200)
modified: ld38.js
ld38.js
patch
|
blob
|
history
diff --git
a/ld38.js
b/ld38.js
index 3b58c486963da1f77a8e40c38b99ca62f894e4a9..c5c6755e04ba76349c870c13c9dee6898e37ad6f 100644
(file)
--- a/
ld38.js
+++ b/
ld38.js
@@
-93,7
+93,7
@@
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(); });
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(); });
- player = new Player(
64, game.world.height - 200
, 'player');
+ player = new Player(
128, game.world.height - 128
, 'player');
player.enablePhysics();
game.add.existing(player);
game.camera.follow(player);
player.enablePhysics();
game.add.existing(player);
game.camera.follow(player);