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