Sprite specific data types
Data type used for storing sprites
Properties
Sprite
| Parameter | Type | Description |
|---|---|---|
image | HTMLImageElement | Image element |
config | SpriteConfig | Holds sprite specific data |
SpriteData
| Parameter | Type | Description |
|---|---|---|
name | string | Unique identifier for the sprite |
src | string | Path to the sprite image |
config | SpriteConfig | Holds sprite specific data |