From 4aebb878872973231ff77a4f4cde6e42cb908f7c Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 18 Jan 2024 15:01:38 +0100 Subject: [PATCH] made game fullscreen --- web/game.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/game.js b/web/game.js index 81ab079..acc3ffc 100644 --- a/web/game.js +++ b/web/game.js @@ -1,7 +1,7 @@ //--------------------Game-------------------- // Game variables -const width = 1260; -const height = 620; +const width = window.innerWidth; +const height = window.innerHeight; let requesteddata = []; let buttonWidth = width / 6 let buttonHeight = buttonWidth / 5