From 9c436393aed8c82cd7dfdc178c1c8edf076b3afa Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 24 May 2023 10:06:36 +0200 Subject: [PATCH] flipping ar coz I am dumb --- res/script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/res/script.js b/res/script.js index a8cf991..6b23664 100644 --- a/res/script.js +++ b/res/script.js @@ -1,6 +1,6 @@ //CONSTANTS const WIDTH = 1000; -const ASPECT_RATIO = 1/2; +let ASPECT_RATIO = 4/3; //yes constant const MOVE_PIECES = 1/32; //CANVAS SHIT @@ -15,6 +15,8 @@ let turn = 0; //NEGATIVE MEANS IT IS TURNED LEFT FROM CENTER, POSITIVE IS RIGHT function load_panorama() { + ASPECT_RATIO = 1 / ASPECT_RATIO; //FLIP THE RATIO COZ I AM FUCKING DUMB + canvas = document.getElementById('panorama'); ctx = canvas.getContext('2d'); img = new Image(); //IMAGE