Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// getYTop.js
(function () {
  /*global adventurejs A*/
  "use strict";
  var p = adventurejs.Tangible.prototype;
  /**
   * Get this asset's global top y based on its y and height.
   * @memberOf adventurejs.Tangible
   * @method adventurejs.Tangible#getYTop
   * @returns {Float}
   */
  p.getYTop = function Tangible_getYTop() {
    return this.position.y + this.dimensions.height;
  };
})();