Members
-
delayedLevel :Object
-
If an ig.game.loadLevel was delayed because preloader wasn't ready, contains the object of the level.
- created on init.- Inherited From:
- Source:
-
delayedSpawnerName :string
-
If an ig.game.loadLevel was delayed because preloader wasn't ready, contains the name of the spawning entity.
- created on init.- Inherited From:
- Source:
-
onReady :ig.Signal
-
Signal dispatched when preloader had loaded everything queued.
- created on init.- Inherited From:
- Source:
-
ready :boolean
-
Property to determine externally if the preloader has finished loading or not.
- created on init.- Inherited From:
- Source:
Methods
-
clearQueue()
-
Entirely clears the queue.
- Inherited From:
- Source:
-
delayLevelLoad(spawnerName, level)
-
Unload the current level and load the level when finished downloading.
Parameters:Name Type Description spawnerName
level
- Inherited From:
- Source:
-
getQueueLength()
-
Returns the length of the queue.
- Inherited From:
- Source:
Number -
imageLoadCallback()
-
Callback for a loaded image
- Inherited From:
- Source:
-
init()
-
Initializes and creates onReady Signal
- Inherited From:
- Source:
-
loadLevels()
-
Preload all queued levels.
- Inherited From:
- Source:
-
loadSingleLevel(levelName)
-
Preload a single level.
Parameters:Name Type Description levelName
- Inherited From:
- Source:
-
preloadCallback(response, options) → {boolean}
-
Callback executed whenever a level was successfully downloaded.
Parameters:Name Type Description response
options
- Inherited From:
- Source:
-
queueLevel(levelName)
-
Pushes a level inside the queue.
Parameters:Name Type Description levelName
- Inherited From:
- Source: