fix: don't round camera position

This commit is contained in:
cha0s 2019-04-11 12:20:50 -05:00
parent c03973e49d
commit b414fe9bad

View File

@ -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;
});