Browse Source

Submission cancels the timer

tags/v0.1.0
Fen Dweller 6 years ago
parent
commit
3fc24bfeec
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      stories/fen-snack.js

+ 7
- 3
stories/fen-snack.js View File

@@ -22,7 +22,10 @@ stories.push({
return true;
},
delay: 1000,
loop: true
loop: true,
classes: [
"alive"
]
}, state);
}
},
@@ -55,8 +58,7 @@ stories.push({
name: "Submit",
desc: "Let Fen digest you",
execute: (room, state) => {
print(["You slump down in the acidic pit, curling up as it begins to churn you down to chyme. Fen's stomach snarls and bubbles for the next few minutes...and then you're gone~",newline,"Nothing's left but a bit of padding on your predator's hips..."]);

state.player.stats.health = 0;
goToRoom("digested", state);
}
}
@@ -138,6 +140,8 @@ stories.push({
enter: (room, state) => {
playLoop("loop/fen-intestines.ogg");
playSfx("sfx/digested-test.ogg");
stopClassTimers("alive", state);
print(["You slump down in the acidic pit, curling up as it begins to churn you down to chyme. Fen's stomach snarls and bubbles for the next few minutes...and then you're gone~",newline,"Nothing's left but a bit of padding on your predator's hips..."]);
},
exit: (room, state) => {
stopLoop("loop/fen-intestines.ogg");


Loading…
Cancel
Save