phaser
Version:
A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.
12 lines (11 loc) • 475 B
JavaScript
/**
* @callback Phaser.Types.Input.HitAreaCallback
* @since 3.0.0
*
* @param {any} hitArea - The hit area object.
* @param {number} x - The translated x coordinate of the hit test event.
* @param {number} y - The translated y coordinate of the hit test event.
* @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that invoked the hit test.
*
* @return {boolean} `true` if the coordinates fall within the space of the hitArea, otherwise `false`.
*/