Browse Source

Fix

customisations
alemart 10 months ago
parent
commit
594806c6e6
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/core/viewport.ts

+ 1
- 1
src/core/viewport.ts View File

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…
Cancel
Save