소스 검색

Fix position snapping when the camera has moved

master
Fen Dweller 5 년 전
부모
커밋
31d97be00a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      macrovision.js

+ 2
- 2
macrovision.js 파일 보기

@@ -221,8 +221,8 @@ function constrainRel(coords) {
return coords;
}
return {
x: Math.min(Math.max(coords.x, -worldWidth / 2), worldWidth / 2),
y: Math.min(Math.max(coords.y, 0), worldHeight)
x: Math.min(Math.max(coords.x, -worldWidth / 2 + config.x), worldWidth / 2 + config.x),
y: Math.min(Math.max(coords.y, config.y), worldHeight + config.y)
}
}
function snapRel(coords) {


불러오는 중...
취소
저장