diff --git a/client/index.js b/client/index.js index 9744d62..506e8cd 100644 --- a/client/index.js +++ b/client/index.js @@ -84,9 +84,7 @@ room.on('entityAdded', (entity) => { } const {camera} = entity; camera.on('realPositionChanged', () => { - const offset = Vector.round( - Vector.sub(halfVisibleSize, camera.realPosition) - ); + const offset = Vector.sub(halfVisibleSize, camera.realPosition); roomView.position = offset; dirty = true; });