mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 00:13:13 +09:00
#61 un-inverted map movement keys
This commit is contained in:
1 parent
618e62de6e
commit
8029067cb2
1 file changed
+8
-8
+8
-8
@@ -77,26 +77,26 @@ function drawImageWithRotation(ctx, image, x, y, w, h, degrees){
|
|||||||
ctx.restore();
|
ctx.restore();
|
||||||
}
|
}
|
||||||
|
|
||||||
Mousetrap.bind("w", e => {
|
Mousetrap.bind("s", e => {
|
||||||
console.log("w");
|
console.log("s");
|
||||||
cache.walkUp();
|
cache.walkUp();
|
||||||
playerPosition.y += 16;
|
playerPosition.y += 16;
|
||||||
clear();drawFromCache();
|
clear();drawFromCache();
|
||||||
});
|
});
|
||||||
Mousetrap.bind("a", e => {
|
Mousetrap.bind("d", e => {
|
||||||
console.log("a");
|
console.log("d");
|
||||||
cache.walkLeft();
|
cache.walkLeft();
|
||||||
playerPosition.x += 16;
|
playerPosition.x += 16;
|
||||||
clear();drawFromCache();
|
clear();drawFromCache();
|
||||||
});
|
});
|
||||||
Mousetrap.bind("s", e => {
|
Mousetrap.bind("w", e => {
|
||||||
console.log("s");
|
console.log("w");
|
||||||
cache.walkDown();
|
cache.walkDown();
|
||||||
playerPosition.y -= 16;
|
playerPosition.y -= 16;
|
||||||
clear();drawFromCache();
|
clear();drawFromCache();
|
||||||
});
|
});
|
||||||
Mousetrap.bind("d", e => {
|
Mousetrap.bind("a", e => {
|
||||||
console.log("d");
|
console.log("a");
|
||||||
cache.walkRight();
|
cache.walkRight();
|
||||||
playerPosition.x -= 16;
|
playerPosition.x -= 16;
|
||||||
clear();drawFromCache();
|
clear();drawFromCache();
|
||||||
|
|||||||
Reference in new issue
Block a user