|
|
|
@@ -2,6 +2,8 @@ |
|
|
|
|
|
|
|
let audioContext; |
|
|
|
|
|
|
|
const version = "pre-alpha"; |
|
|
|
|
|
|
|
let state = { |
|
|
|
player: { |
|
|
|
items: { |
|
|
|
@@ -47,9 +49,14 @@ function init(story) { |
|
|
|
// set up the load screen |
|
|
|
|
|
|
|
function initStart() { |
|
|
|
const versionFields = document.querySelectorAll(".version"); |
|
|
|
const select = document.querySelector("#game-select"); |
|
|
|
const options = {}; |
|
|
|
|
|
|
|
versionFields.forEach(field => { |
|
|
|
field.textContent = "Version: " + version; |
|
|
|
}); |
|
|
|
|
|
|
|
stories.forEach(story => { |
|
|
|
const option = document.createElement("option"); |
|
|
|
option.value = story.id; |
|
|
|
|