1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-04-24 18:21:03 +00:00

New hard reset method

This commit is contained in:
Acamaeda 2020-11-30 20:55:04 -05:00
parent c88555da94
commit acd6d2c4d3
2 changed files with 4 additions and 1 deletions

View file

@ -332,7 +332,7 @@ function gameLoop(diff) {
function hardReset() {
if (!confirm("Are you sure you want to do this? You will lose all your progress!")) return
player = getStartPlayer()
player = null
save();
window.location.reload();
}