Class: ImageLoader

ImageLoader

new ImageLoader()

Loads external:images and lets you know when they're all available. An instance of ImageLoader is available as Splat.Game#images.
Source:

Methods

allLoaded() → {boolean}

Test if all external:images have loaded.
Source:
Returns:
Type
boolean

get(name) → {external:image}

Retrieve a loaded external:image.
Parameters:
Name Type Description
name string The name given to the image during ImageLoader#load.
Source:
Returns:
Type
external:image

load(name, path)

Load an external:image.
Parameters:
Name Type Description
name string The name you want to use when you ImageLoader#get the external:image
path string The path of the external:image.
Source: