Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
// getYRange.js
(function () {
  /* global adventurejs A */
  var p = adventurejs.Tangible.prototype;
  /**
   * Get this asset's bottom y and top y based on its y and height,
   * which may be negative.
   * @memberOf adventurejs.Tangible
   * @method adventurejs.Tangible#getYRange
   * @returns {Object}
   */
  p.getYRange = function Tangible_getYRange() {
    return { min: this.getYBottom(), max: this.getYTop() };
  };
})();