1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Added movement speed setting

This commit is contained in:
mini-bomba
2020-06-12 00:47:59 +02:00
parent e3f05aae45
commit 107a3ef69c
4 changed files with 79 additions and 3 deletions

View File

@@ -901,8 +901,8 @@ export class Camera extends BasicSerializableObject {
forceX += 1;
}
this.center.x += moveAmount * forceX;
this.center.y += moveAmount * forceY;
this.center.x += moveAmount * forceX * this.root.app.settings.getMovementSpeed();
this.center.y += moveAmount * forceY * this.root.app.settings.getMovementSpeed();
}
}
}