Просмотр исходного кода

Fixed some properties not resetting on quit

tags/v0.1.0
Fen Dweller 6 лет назад
Родитель
Сommit
46320b87be
2 измененных файлов: 5 добавлений и 0 удалений
  1. +2
    -0
      game.js
  2. +3
    -0
      satiate.js

+ 2
- 0
game.js Просмотреть файл

@@ -12,6 +12,8 @@ function initGame(story, state) {
function initGamePostSetup(state) {
const holder = document.querySelector("#player-info");

holder.innerHTML = "";
Object.entries(state.player.stats).forEach(([key, val]) => {

if (val.type == "meter") {


+ 3
- 0
satiate.js Просмотреть файл

@@ -53,6 +53,9 @@ function openModal(modal) {

function returnToStart() {
stopAllSound();
stopAllTimers(state);
setBackgroundColor(0, 0, 0);

log.innerHTML = "";

document.querySelector("#game").classList.remove("scene");


Загрузка…
Отмена
Сохранить