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