Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// Adventure.js

/*global adventurejs A*/
"use strict";
/**
 * @class adventurejs
 * @ajsconstruct this.adventurejs = this.adventurejs||{}
 * @hideconstructor
 * @ajsnavheading FrameworkReference
 * @summary Self-invoking anonymous function and main framework container for adventure.js.
 * @classdesc
 * <p>
 * <strong>adventurejs</strong> is a self-invoking anonymous
 * function that creates a container to hold the main framework for
 * adventure.js. adventurejs is singular and scoped to window
 * (meaning, the <a class="external"
 * href="https://www.w3schools.com/js/js_window.asp">browser window object</a>),
 * and can support simultaneous multiple Game instances.
 * See {@link adventurejs.Game|Game}
 * for more information on constructing a Game instance.
 * </p>
 */

this.adventurejs =
  this.ajs =
  this.A =
    this.adventurejs || {
      Preverbs: {},
      GlobalAssets: {
        Exits: [],
        Walls: [],
        Floors: [],
        Ceilings: [],
        Scenery: [],
      },
      Utils: {},
    };