From 8029067cb241d47501a17e9254b5c895cd7f1229 Mon Sep 17 00:00:00 2001 From: Danielv123 Date: Thu, 4 Jan 2018 19:46:10 +0100 Subject: [PATCH] #61 un-inverted map movement keys --- static/remoteMap.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/static/remoteMap.js b/static/remoteMap.js index 07a78cc5..fe4cfbd8 100644 --- a/static/remoteMap.js +++ b/static/remoteMap.js @@ -77,26 +77,26 @@ function drawImageWithRotation(ctx, image, x, y, w, h, degrees){ ctx.restore(); } -Mousetrap.bind("w", e => { - console.log("w"); +Mousetrap.bind("s", e => { + console.log("s"); cache.walkUp(); playerPosition.y += 16; clear();drawFromCache(); }); -Mousetrap.bind("a", e => { - console.log("a"); +Mousetrap.bind("d", e => { + console.log("d"); cache.walkLeft(); playerPosition.x += 16; clear();drawFromCache(); }); -Mousetrap.bind("s", e => { - console.log("s"); +Mousetrap.bind("w", e => { + console.log("w"); cache.walkDown(); playerPosition.y -= 16; clear();drawFromCache(); }); -Mousetrap.bind("d", e => { - console.log("d"); +Mousetrap.bind("a", e => { + console.log("a"); cache.walkRight(); playerPosition.x -= 16; clear();drawFromCache();