Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
// printQueue.js
(function () {
  /* global adventurejs A */

  var p = adventurejs.Game.prototype;

  /**
   * Print queued outputs.
   * @method adventurejs.Game#printQueue
   * @memberOf adventurejs.Game
   */
  p.printQueue = function Game_printQueue() {
    this.game.enqueue_output = false;
    while (this.game.print_queue.length) {
      let item = this.game.print_queue.shift();
      this.game.print(item[0], item[1]);
    }
  };
})();