From 63ed93a6535b8bfefbf17146ef9ba0f5bff09f01 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sun, 6 Jul 2014 15:05:05 -0700 Subject: [PATCH] Fixed more bugs with stealing when facing down or right --- moonlight/src/GameStates.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moonlight/src/GameStates.js b/moonlight/src/GameStates.js index aecbdb5..9913f3d 100644 --- a/moonlight/src/GameStates.js +++ b/moonlight/src/GameStates.js @@ -341,11 +341,11 @@ GameState.prototype.update = function() break; } case STATE_FACE_RIGHT: { - player.body.x += (STEAL_DISTANCE + 8); + player.body.width += (STEAL_DISTANCE + 8); break; } case STATE_FACE_DOWN: { - player.body.y += STEAL_DISTANCE; + player.body.height += STEAL_DISTANCE; break; } case STATE_FACE_UP: {