UNPKG

@phaser-plus/perspective2d

Version:

Create games with a linearly transformed projection

46 lines (45 loc) 876 B
export default DepthSort; export type SortFn = (objectA: GameObject2D, objectB: GameObject2D) => number; /** * @callback SortFn * @param {GameObject2D} objectA * @param {GameObject2D} objectB * @returns {number} */ declare class DepthSort { /** * @private * @type {string} */ private sortFn; setup(): void; disable(): void; set(inverseX?: boolean, inverseY?: boolean): void; /** * @private * @type {SortFn} */ private normalSort; /** * @private * @type {SortFn} */ private inverseXSort; /** * @private * @type {SortFn} */ private inverseYSort; /** * @private * @type {SortFn} */ private inverseSort; /** * @private * @type {SortFn} */ private disabledSort; get fn(): any; } import GameObject2D from "./GameObject2D";