DroptargetEntity

(deprecated: since 10.5.0)
class DroptargetEntity extends Entity

Used to make a game entity a droptarget

See: DropTarget

Constructor


new DroptargetEntity(x: number, y: number, settings: object) → {}
Parameters:
Name Type Description
x number

the x coordinates of the draggable object

y number

the y coordinates of the draggable object

settings object

Entity properties (see Entity)

Summary


Properties inherited from Entity

Properties inherited from Rect

number
bottom
number
centerX
number
centerY
number
height
number
left
number
right
number
top
number
width

Properties inherited from Polygon

Array<Vector2d>
points

Methods inherited from Entity

onBodyUpdate()

update the bounds when the body is modified

onDeactivateEvent()

onDeactivateEvent Notification function

Bounds
updateBounds(absolute: boolean)
protected draw(renderer: CanvasRenderer | WebGLRenderer, viewport: Camera2d)

Powered by webdoc!