flipping ar coz I am dumb

This commit is contained in:
Václav Šmejkal 2023-05-24 10:06:36 +02:00
parent ebfcf89584
commit 9c436393ae
Signed by: ENGO150
GPG Key ID: F6D6DF86242C5A59

View File

@ -1,6 +1,6 @@
//CONSTANTS //CONSTANTS
const WIDTH = 1000; const WIDTH = 1000;
const ASPECT_RATIO = 1/2; let ASPECT_RATIO = 4/3; //yes constant
const MOVE_PIECES = 1/32; const MOVE_PIECES = 1/32;
//CANVAS SHIT //CANVAS SHIT
@ -15,6 +15,8 @@ let turn = 0; //NEGATIVE MEANS IT IS TURNED LEFT FROM CENTER, POSITIVE IS RIGHT
function load_panorama() function load_panorama()
{ {
ASPECT_RATIO = 1 / ASPECT_RATIO; //FLIP THE RATIO COZ I AM FUCKING DUMB
canvas = document.getElementById('panorama'); canvas = document.getElementById('panorama');
ctx = canvas.getContext('2d'); ctx = canvas.getContext('2d');
img = new Image(); //IMAGE img = new Image(); //IMAGE