浏览代码

Fixed some properties not resetting on quit

tags/v0.1.0
Fen Dweller 6 年前
父节点
当前提交
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) { function initGamePostSetup(state) {
const holder = document.querySelector("#player-info"); const holder = document.querySelector("#player-info");


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


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


+ 3
- 0
satiate.js 查看文件

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


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

log.innerHTML = ""; log.innerHTML = "";


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


正在加载...
取消
保存