phaser/v3/src/input/InteractiveObject.js

22 lines
383 B
JavaScript
Raw Normal View History

// 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;