From b996b09ce6be37a73c7d3a82b2bb314d09d9c2bc Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Mon, 7 Jan 2019 17:50:06 -0500 Subject: [PATCH] Game starts at a place defined by the story --- satiate.js | 2 +- stories/demo.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/satiate.js b/satiate.js index 6372259..7b06585 100644 --- a/satiate.js +++ b/satiate.js @@ -69,7 +69,7 @@ function init(story) { initAudio(story, state); initGame(story, state); - goToRoom("Home", state); + goToRoom(story.intro.start, state); } // set up the load screen diff --git a/stories/demo.js b/stories/demo.js index 1f45702..e9ff2df 100644 --- a/stories/demo.js +++ b/stories/demo.js @@ -1,6 +1,9 @@ stories.push({ "id": "demo", "name": "Tech Demo", + "intro": { + "start": "Home" + }, "sounds": [ "sfx/oof.ogg" ],