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;
|
const {camera} = entity;
|
||||||
camera.on('realPositionChanged', () => {
|
camera.on('realPositionChanged', () => {
|
||||||
const offset = Vector.round(
|
const offset = Vector.sub(halfVisibleSize, camera.realPosition);
|
||||||
Vector.sub(halfVisibleSize, camera.realPosition)
|
|
||||||
);
|
|
||||||
roomView.position = offset;
|
roomView.position = offset;
|
||||||
dirty = true;
|
dirty = true;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user