Преглед изворни кода

Added a function to introduce the story

tags/v0.1.0
Fen Dweller пре 7 година
родитељ
комит
3ee4c9a4cb
3 измењених фајлова са 9 додато и 1 уклоњено
  1. +3
    -1
      satiate.js
  2. +3
    -0
      stories/demo.js
  3. +3
    -0
      stories/fen-snack.js

+ 3
- 1
satiate.js Прегледај датотеку

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


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


refreshHook = story.refresh; refreshHook = story.refresh;


story.intro.intro(state);

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




+ 3
- 0
stories/demo.js Прегледај датотеку

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


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


+ 3
- 0
stories/fen-snack.js Прегледај датотеку

@@ -76,6 +76,9 @@ stories.push({
"alive" "alive"
] ]
}, state); }, 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 => { refresh: state => {


Loading…
Откажи
Сачувај