adds an asset to the load queue
adds an image to the load queue
Parameter | Type | Description |
---|---|---|
key | String | unique id of the image asset |
path | String | path of the image asset |
adds a spritesheet to the load queue
Parameter | Type | Description |
---|---|---|
key | String | unique id of the spritesheet asset |
path | String | path of the spritesheet asset |
frameWidth | Int | width of the frames in the spritesheet |
frameHeight | Int | height of the frames in the spritesheet |