1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-21 08:12:39 +00:00

Alpha Build 2 Patch 1

This commit is contained in:
Jacorb90 2020-08-19 18:20:42 -04:00
parent 220b9fd841
commit 0d9e81d7f9
2 changed files with 5 additions and 3 deletions

View file

@ -10,10 +10,8 @@
</head>
<body onload="load()">
<div id="app">
<img id="optionWheel" v-if="player.tab!='options'" src="options_wheel.png" onclick="showTab('options')"></img>
<div id="info" v-if="player.tab=='tree'" onclick="showTab('info')"><br>i</div>
<div class="vl"></div>
<br><br>
<div v-if="player.tab=='info'" class="col right">
<button class="back" onclick="showTab('tree')"></button><br><br><br><br><br>
<h3>Hotkeys</h3><br><br>
@ -41,7 +39,8 @@
</table>
</div>
<div class="col left">
You have <h2>{{format(player.points)}}</h2> Points
<img id="optionWheel" v-if="player.tab!='options'" src="options_wheel.png" onclick="showTab('options')"></img>
<br>You have <h2>{{format(player.points)}}</h2> Points
<br><br><br><br><br>
<table>
<tr>

View file

@ -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