|
|
|
@@ -84,7 +84,6 @@ function init(story) { |
|
|
|
}; |
|
|
|
|
|
|
|
initWorld(story, state); |
|
|
|
initAudio(story, state); |
|
|
|
initGame(story, state); |
|
|
|
|
|
|
|
story.intro.setup(state); |
|
|
|
@@ -122,7 +121,12 @@ function initStart() { |
|
|
|
|
|
|
|
holder.innerHTML = ""; |
|
|
|
|
|
|
|
const tags = stories.filter(s => s.id == [event.target.value])[0].tags; |
|
|
|
const story = stories.filter(s => s.id == [event.target.value])[0]; |
|
|
|
const tags = story.tags; |
|
|
|
|
|
|
|
initAudio(story); |
|
|
|
|
|
|
|
story.preload.forEach(sound => loadAudio(sound)); |
|
|
|
|
|
|
|
tags.forEach(tag => { |
|
|
|
const div = document.createElement("div"); |
|
|
|
|