mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 07:04:53 +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();
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
Reference in new issue
Block a user