From f59f5cc056b688e2fef6959a1c2b6f8878fce44a Mon Sep 17 00:00:00 2001 From: Maik Riechert Date: Sun, 12 Jul 2015 14:02:58 +0100 Subject: [PATCH] fixes #2 see https://github.com/craftyjs/Crafty/pull/923#issuecomment-120718636 --- hungrymonkey.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hungrymonkey.js b/hungrymonkey.js index 077f0b5..3472470 100644 --- a/hungrymonkey.js +++ b/hungrymonkey.js @@ -168,9 +168,9 @@ function freezeGame(healthUpdater, monkey) { function spawnMonkey(levelWidth) { var monkey = Crafty.e('2D, DOM, Twoway, Gravity, Collision, sprite_monkey') .attr({x: 0, y: H-FH-100, w: 50, h: 50, z: 9}) - .twoway(5,19) + .twoway(250,950) .gravity('Floor') - .gravityConst(1) + .gravityConst(2500) .collision() .onHit("wall_left", function() { this.x=0;