Interface: AnimationTarget

hcje/sprites~AnimationTarget

Interface for objects that can be updated by an Animator.

Source:

Methods

isKilled() → {boolean}

Check whether the target has been killed.

Source:
Returns:
Type
boolean

kill()

Kill the target.

Source:

update(timestamp, deltaSeconds)

Update function called by the Animator.

Parameters:
Name Type Description
timestamp DOMHighResTimeStamp

Timestamp in milliseconds

deltaSeconds number

Elapsed time in seconds since previous update called.

Source: