Module: lyria/preloader

lyria/preloader

new require("lyria/preloader")()

Provides a preloader to load assets before they are needed

Source:
Source:

Requires

Methods

add(child)

Adds a component to this entity

Parameters:
Name Type Description
child Object
Inherited From:
Source:

log(text)

Logs from the component itself

Parameters:
Name Type Description
text String
Inherited From:
Source:

remove(name)

Removes a component from the entity

Parameters:
Name Type Description
name String
Inherited From:
Source:

start()

Starts the preloader and loads all assets asynchronously. Triggers events when necessary.

Source:

task(taskFn)

Adds a custom task to the preloader

Parameters:
Name Type Description
taskFn function
Source:

taskAsync(taskFn)

Adds a custom asynchronous task to the preloader

Parameters:
Name Type Description
taskFn function
Source:
DocStrap Copyright © 2012-2013 The contributors to the JSDoc3 and DocStrap projects.
Documentation generated by JSDoc 3.2.2 on Sun Jan 26 2014 20:12:45 GMT+0100 (MEZ) using the DocStrap template.