mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2025-05-12 13:01:05 +00:00
Alpha Build 2 Patch 1
This commit is contained in:
parent
220b9fd841
commit
0d9e81d7f9
2 changed files with 5 additions and 3 deletions
js
|
@ -990,10 +990,12 @@ function hardReset() {
|
|||
}
|
||||
|
||||
var saveInterval = setInterval(function() {
|
||||
if (player===undefined) return;
|
||||
if (player.autosave) save();
|
||||
}, 5000)
|
||||
|
||||
var interval = setInterval(function() {
|
||||
if (player===undefined) return;
|
||||
let diff = (Date.now()-player.time)/1000
|
||||
player.time = Date.now()
|
||||
if (needCanvasUpdate && player.tab=="tree") resizeCanvas();
|
||||
|
@ -1001,6 +1003,7 @@ var interval = setInterval(function() {
|
|||
}, 50)
|
||||
|
||||
document.onkeydown = function(e) {
|
||||
if (player===undefined) return;
|
||||
let shiftDown = e.shiftKey
|
||||
let key = e.key
|
||||
if (!LAYERS.includes(key)) return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue