Przeglądaj źródła

Player prefs are now saved

tags/v0.2.8
Fen Dweller 7 lat temu
rodzic
commit
4b3825d7fc
1 zmienionych plików z 3 dodań i 0 usunięć
  1. +3
    -0
      feast.js

+ 3
- 0
feast.js Wyświetl plik

@@ -679,6 +679,8 @@ function saveGame() {
}
});

save.prefs = JSON.stringify(player.prefs);

save.position = currentRoom.name;
save.date = date;
save.time = time;
@@ -702,6 +704,7 @@ function loadGame() {
}
}

player.prefs = JSON.parse(save.prefs);
deaths = save.deaths;

date = save.date;


Ładowanie…
Anuluj
Zapisz