|
- "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);
- });
- }
-
- // setup the game
-
- function init() {
- initWorld("demo", state);
- initAudio("demo", state);
-
- goToRoom("Home", state);
- }
-
- window.addEventListener("load", init);
|