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