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

BootState

Extends:

Phaser~Phaser.State → BootState

Starting point for prettymuch everything Retrieves and initializes the preloader assets Displays an empty black screen while preloader assets are downloading

Constructor Summary

Public Constructor
public

Constructor method for BootState Sets the loading image 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 app scaling behavior Retrieves the loading image from the server

public

update()

Runs continuously, before each frame is rendered for this state Starts the LoadState once the loading image has been retrieved

Public Constructors

public constructor() source

Constructor method for BootState Sets the loading image 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 loadingImageURL: * 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 app scaling behavior Retrieves the loading image from the server

public update() source

Runs continuously, before each frame is rendered for this state Starts the LoadState once the loading image has been retrieved