Class Fz2D.Loader

Defined in: src/loader/loader.coffee

Overview

Public: Loader

Instance Method Summary

Constructor Details

::constructor(game) Source

Public: Constructor. game - Fz2D.Game

Parameters:

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.

Parameters:

  • pathpartial relative path

Returns:

  • Returns an instance of the asset.

::onload() Source

Public: On load(ed) callback.

::update(timer, input) Source

Public: Updates loader on every frame.