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:
parent
c88555da94
commit
acd6d2c4d3
2 changed files with 4 additions and 1 deletions
js
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue