瀏覽代碼

Fix

customisations
alemart 11 月之前
父節點
當前提交
594806c6e6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/core/viewport.ts

+ 1
- 1
src/core/viewport.ts 查看文件

991
     {
991
     {
992
         const canvas = this.canvas;
992
         const canvas = this.canvas;
993
         const x = 0.5 * (1 + position.x) * canvas.width;
993
         const x = 0.5 * (1 + position.x) * canvas.width;
994
-        const y = -0.5 * (1 + position.y) * canvas.height;
994
+        const y = 0.5 * (1 - position.y) * canvas.height;
995
 
995
 
996
         return new Vector2(x, y);
996
         return new Vector2(x, y);
997
     }
997
     }

Loading…
取消
儲存