Home Reference Source
import LoadState from 'domless/src/states/load.js'
public class | source

LoadState

Extends:

Phaser~Phaser.State → LoadState

Displays the loading screen for the app Loads the assets in the background Starts the run state when loading is finished

Constructor Summary

Public Constructor
public

Constructor method for LoadState Returns a new instance of this class

Member Summary

Public Members
public get

app: *

Getter for the app property this.app is a synonym for this.game

public

Method Summary

Public Methods
public

create()

Runs once, before the first frame is rendered for this state

public

Runs once, before the create method for this state Sets up the loading image for display Initializes the loaders for all Domless components

public

update()

Runs continuously, before each frame is rendered for this state Starts the run state if all assets and components have loaded

Public Constructors

public constructor() source

Constructor method for LoadState Returns a new instance of this class

Public Members

public get app: * source

Getter for the app property this.app is a synonym for this.game

public loadingSprite: * source

Public Methods

public create() source

Runs once, before the first frame is rendered for this state

public preload() source

Runs once, before the create method for this state Sets up the loading image for display Initializes the loaders for all Domless components

public update() source

Runs continuously, before each frame is rendered for this state Starts the run state if all assets and components have loaded