bit clearer server-client protocol

This commit is contained in:
Zutatensuppe 2020-11-17 21:46:56 +01:00
parent ff79fb8273
commit 6cf4f71c86
7 changed files with 308 additions and 217 deletions

View file

@ -35,6 +35,7 @@ export default class Camera {
}
// centered zoom
// TODO: mouse-centered-zoom
this.x -= Math.round(((this.width / this.zoom) - (this.width / zoom)) / 2)
this.y -= Math.round(((this.height / this.zoom) - (this.height / zoom)) / 2)