Animation
Extends:
Drawable → Animation
Constructor Summary
Public Constructor | ||
public |
constructor(images: *, frames: *) Sets up the animation. |
Inherited Summary
From class Drawable | ||
public |
Set the rectangular bounds of the section to draw. |
|
public |
draw(ctx: CanvasRenderingContext2D, x: number, y: number) Draws at given position. |
Public Constructors
public constructor(images: *, frames: *) source
Sets up the animation.
Params:
Name | Type | Attribute | Description |
images | * | ||
frames | * |
Public Methods
public draw(ctx: *, x: *, y: *) source
Override:
Drawable#drawParams:
Name | Type | Attribute | Description |
ctx | * | ||
x | * | ||
y | * |