added reload button

This commit is contained in:
Yannik
2023-06-23 22:55:34 +02:00
parent 0c43d6d104
commit f628c0efa1
2 changed files with 4 additions and 0 deletions

View File

@@ -35,6 +35,7 @@
</div>
<img draggable="false" hidden="true" id="triangle" src="text_horror/assets/triangle.png">
<p class="thx-for-playing">Danke fürs spielen!</p>
<p class="thx-for-playing" onclick="reloadGame()"><br><br><u>Zum letzten Checkpoint</u></p>
</body>
</html>

View File

@@ -49,6 +49,9 @@ function resetGame() {
location.reload();
}
}
function reloadGame() {
location.reload();
}
//change current dialogue lines with dictionary keys
function changeDlg(dlgKey) {
if (typeof dlgFile[dlgKey] === "string") {