Selaa lähdekoodia

Added a function to introduce the story

tags/v0.1.0
Fen Dweller 6 vuotta sitten
vanhempi
commit
3ee4c9a4cb
3 muutettua tiedostoa jossa 9 lisäystä ja 1 poistoa
  1. +3
    -1
      satiate.js
  2. +3
    -0
      stories/demo.js
  3. +3
    -0
      stories/fen-snack.js

+ 3
- 1
satiate.js Näytä tiedosto

@@ -75,7 +75,7 @@ function init(story) {

},
flags: {
}
},
};
@@ -90,6 +90,8 @@ function init(story) {

refreshHook = story.refresh;

story.intro.intro(state);

goToRoom(story.intro.start, state);
}



+ 3
- 0
stories/demo.js Näytä tiedosto

@@ -5,6 +5,9 @@ stories.push({
"start": "Home",
"setup": state => {

},
"intro": state => {
print(["don't fall down the stairs ok"]);
}
},
"sounds": [


+ 3
- 0
stories/fen-snack.js Näytä tiedosto

@@ -76,6 +76,9 @@ stories.push({
"alive"
]
}, state);
},
intro: state => {
print(["Hot, slimy walls ripple and squeeze, the stomach of your captor stewing you in a churning stew of chyme and acid. You've only been trapped under the crux's pelt for a few minutes...and it doesn't seem like you'll last much longer than that, either."]);
}
},
refresh: state => {


Loading…
Peruuta
Tallenna