Type Definitions
CanvasRenderingContext2D
The DOM CanvasRenderingContext2D interface.
- Source:
- See:
Frame
A Frame is a frame definiton in an animation
Type:
- Array.<Integer>
Properties:
Name | Type | Description |
---|---|---|
0 |
Integer | Tile x-coordinate in the asset in units of tileWidth |
1 |
Integer | Tile y-coordinate in the asset in units of tileHeight |
2 |
Integer | Delay after this frame (optional) |
3 |
Integer | x Delta at this frame (move x pixels) (optional) |
4 |
Integer | y Delta at this frame (move y pixels) (optional) |
- Source:
Rectangle
A Rectangle defined a rectangle by left,top,right,bottom coordinates
Type:
- Array.<Integer>
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
0 |
Integer |
<optional> |
The x-coordinate of the left |
1 |
Integer |
<optional> |
The y-coordinate of the top |
2 |
Integer |
<optional> |
The x-coordinate of the right |
3 |
Integer |
<optional> |
The y-coordinate of the bottom |
- Source:
Tile
A Tile is a tile definition, containing the x and y coordinates of the tile
Type:
- Array.<Integer>
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
0 |
Integer |
<optional> |
The x-coordinate |
1 |
Integer |
<optional> |
The y-coordinate |
- Source: