From 4c33b827c33044c24aadccf27ab9fc915a791e27 Mon Sep 17 00:00:00 2001 From: David Hain <57726396+d-hain@users.noreply.github.com> Date: Sat, 21 Jan 2023 08:10:09 +0100 Subject: [PATCH] jojo --- frontend/public/game.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/public/game.js b/frontend/public/game.js index 4d1a861..468f29a 100644 --- a/frontend/public/game.js +++ b/frontend/public/game.js @@ -43,11 +43,16 @@ function preload() { floorImage = loadImage(FLOOR_IMAGE_PATH); } function setup() { - createCanvas(1085, 600); + createCanvas(2000, 1000); floorHeight = height / 5; setupObstacleConsts(); setupFont(); setupGame(); + var originalSetItem = localStorage.setItem; + localStorage.setItem = function () { + document.createEvent('Event').initEvent('itemInserted', true, true); + originalSetItem.apply(this, arguments); + }; } function setupObstacleConsts() { obstacleOffset = width / OBSTACLE_COUNT;