Class Fz2D.Loader
| Defined in: | src/loader/loader.coffee |
Overview
Public: Loader
Instance Method Summary
- ::complete() Triggers the on load(ed) callback.
- ::constructor(game) Constructor.
- ::draw(ctx) Draws loader on every frame.
- ::isLoading() Returns true if still loading.
- ::load(path) Loads an asset.
- ::onload() On load(ed) callback.
- ::update(timer, input) Updates loader on every frame.
Constructor Details
Instance Method Details
::complete() Source
Public: Triggers the on load(ed) callback.
::draw(ctx) Source
Public: Draws loader on every frame.
::isLoading() Source
Public: Returns true if still loading.
::load(path) Source
Public: Loads an asset.
path - partial relative path
Returns an instance of the asset.
::onload() Source
Public: On load(ed) callback.
::update(timer, input) Source
Public: Updates loader on every frame.