new spriteImgObj(sprites, onload)
The spriteImgObj
class is used to store catche for sprites.
Parameters:
Name | Type | Description |
---|---|---|
sprites |
Array.<String> | An array of strings representing sources |
onload |
function | A function that is executed when all of the images are loaded. |
- Source:
Members
-
length :Boolean
-
Boolean telling us if it is loaded or not.
Type:
- Boolean
- Source:
-
length :Number
-
Length
Type:
- Number
- Source:
-
loaded_n :Number
-
Number of loaded sprites
Type:
- Number
- Source:
-
onload :function
-
Function to call if loaded.
Type:
- function
- Source:
-
static :Object
-
Object of static sprite objects
Type:
- Object
- Source:
-
urls :Object
-
URL List
Type:
- Object
- Source:
-
urls :Array
-
Image List
Type:
- Array
- Source:
-
urls :Array
-
Image List
Type:
- Array
- Source: