bit clearer server-client protocol
This commit is contained in:
parent
ff79fb8273
commit
6cf4f71c86
7 changed files with 308 additions and 217 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue