diff --git a/gorge.css b/gorge.css index f459dd0..a662f4d 100644 --- a/gorge.css +++ b/gorge.css @@ -255,6 +255,15 @@ button { width: 50%; } + #resources-area { + top: 15%; + left: 5%; + } + + #tasty-micro { + width: 30vw; + } + #upgrades-list { max-height: 25vh !important; } diff --git a/gorge.js b/gorge.js index b23b2bf..18e6d7d 100644 --- a/gorge.js +++ b/gorge.js @@ -1316,6 +1316,15 @@ window.onload = function () { setTimeout(autosave, 60000); } +window.onblur = function() { + controlHeld = false; + shiftHeld = false; +} + +window.onfocus = function() { + window.dispatchEvent(new Event("keydown")) +} + function autosave() { saveGame(); let x = window.innerWidth / 2;