mirror of
https://github.com/photonstorm/phaser
synced 2025-01-12 13:18:49 +00:00
22 lines
383 B
JavaScript
22 lines
383 B
JavaScript
|
// Phaser.Input.InteractiveObject
|
||
|
|
||
|
var InteractiveObject = function (gameObject, hitArea, hitAreaCallback)
|
||
|
{
|
||
|
return {
|
||
|
gameObject: gameObject,
|
||
|
|
||
|
hitArea: hitArea,
|
||
|
hitAreaCallback: hitAreaCallback,
|
||
|
|
||
|
localX: 0,
|
||
|
localY: 0,
|
||
|
|
||
|
isOver: false,
|
||
|
isDown: false,
|
||
|
|
||
|
isDragged: false
|
||
|
};
|
||
|
};
|
||
|
|
||
|
module.exports = InteractiveObject;
|