Bladeren bron

Fixed some properties not resetting on quit

tags/v0.1.0
Fen Dweller 6 jaren geleden
bovenliggende
commit
46320b87be
2 gewijzigde bestanden met toevoegingen van 5 en 0 verwijderingen
  1. +2
    -0
      game.js
  2. +3
    -0
      satiate.js

+ 2
- 0
game.js Bestand weergeven

@@ -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 Bestand weergeven

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

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

log.innerHTML = "";

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


Laden…
Annuleren
Opslaan