Loader#Loader

new Loader(game)

The Loader handles loading all external content such as Images, Sounds, Texture Atlases and data files.

The loader uses a combination of tag loading (eg. Image elements) and XHR and provides progress and completion callbacks.

Parallel loading (see enableParallel) is supported and enabled by default.
Load-before behavior of parallel resources is controlled by synchronization points as discussed in withSyncPoint.

Texture Atlases can be created with tools such as Texture Packer and
Shoebox

Parameters
Name Type Description
game Phaser.Game

A reference to the currently running game.

Source code: loader/Loader.js (Line 22)
doc_phaser
2017-02-14 10:54:25
Comments
Leave a Comment

Please login to continue.