fix: don't round camera position
This commit is contained in:
parent
c03973e49d
commit
b414fe9bad
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user