|  | "use strict"
let audioContext;
let state = {
  player: {
    items: {
      keys: [
      ]
    },
    rooms: {
    }
  }
}
function print(lines) {
  (lines.concat([String.fromCharCode(160)])).forEach(line => {
    const log = document.querySelector("#log");
    const div = document.createElement("div");
    div.textContent = line;
    log.appendChild(div);
  });
  log.scrollTop = log.scrollHeight;
}
function refresh() {
  updateRoom(state);
  updateWorldInfo(state);
  updatePlayerInfo(state);
}
// setup the game
function init() {
  initWorld("demo", state);
  initAudio("demo", state);
  initGame("demo", state);
  goToRoom("Home", state);
}
window.addEventListener("load", init);
 |