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

Merge pull request #112 from mini-bomba/move-speed

Added movement speed setting
This commit is contained in:
tobspr
2020-06-12 19:09:10 +02:00
committed by GitHub
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();
}
}
}