* Gets called when the user starts dragging the entity * @param {object} e - the pointer event * @returns {boolean} false if the object is being dragged
(e)
| 77 | * @returns {boolean} false if the object is being dragged |
| 78 | */ |
| 79 | dragStart(e) { |
| 80 | if (this.dragging === false) { |
| 81 | this.dragging = true; |
| 82 | this.grabOffset.set(e.gameX, e.gameY); |
| 83 | this.grabOffset.sub(this.pos); |
| 84 | return false; |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * Gets called when the user drags this entity around |
no test coverage detected