Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
//GlobalRoomtone.js
(function () {
  /*global adventurejs A*/
  "use strict";

  /**
   * @ajsnode game.world.global_sound
   * @augments {adventurejs.Scenery}
   * @class global_sound
   * @ajsconstruct MyGame.createGlobalScenery({ "name": "global_sound", [...] });
   * @ajsconstructedby adventurejs.Game#createGlobalScenery
   * @hideconstructor
   * @ajsinstanceof Scenery
   * @ajsmodifiedby adventurejs.Game#setGlobalDescriptions
   * @ajsnavheading GlobalScenery
   * @tutorial NextSteps_GlobalScenery
   * @summary A global scenery object.
   * @ajsglobal GlobalScenery
   */
  A.GlobalAssets.Scenery.push({
    name: "sound",
    synonyms: ["room", "tone", "roomtone", "room tone"],
    // @TODO this form isn't handled by createGlobalScenery
    // which bypasses createAsset / constructAsset
    dov: { listen: true },
    descriptions: {
      look: "$(We) hear a slight tone over a steady low rumble. ",
      sound: "$(We) hear a slight tone over a steady low rumble. ",
    },
    enabled: false,
  });
})();