diff --git a/audio.js b/audio.js index 78cf09b..4baccf3 100644 --- a/audio.js +++ b/audio.js @@ -169,13 +169,13 @@ function checkCache(type, name, hit, miss) { } } -function initAudio(game, state) { +function initAudio(story, state) { if (!audioContext) audioContext = new (window.AudioContext || window.webkitAudioContext)(); createCache(); - games[game].sounds.forEach(sound => { + story.sounds.forEach(sound => { loadAudio(sound); }); } diff --git a/game.js b/game.js index a423202..13f8975 100644 --- a/game.js +++ b/game.js @@ -1,4 +1,6 @@ -function initGame(game, state) { +stories = []; + +function initGame(story, state) { state.info = {}; state.info.time = 60 * 60 * 9; diff --git a/satiate.css b/satiate.css index c3bc5cc..1d04fb3 100644 --- a/satiate.css +++ b/satiate.css @@ -6,6 +6,24 @@ html, body, .scene { font-family: sans-serif; } +.hidden-scene { + display: none; +} + +.modal { + position: fixed; + z-index: 1; + height: 100%; + width: 100%; + left: 0; + top: 0; + background-color: rgba(0,0,0,0.5); +} + +.modal-content { + margin: 50%; +} + #info-area { position: relative; display: flex; diff --git a/satiate.html b/satiate.html index dfd87d8..3c9ae20 100644 --- a/satiate.html +++ b/satiate.html @@ -7,6 +7,7 @@ + @@ -18,8 +19,13 @@
-