Class: ScreenPage

ScreenPage

Represents the page of the game,
Register and holds CanvasInterface.
Contains pages logic.
Instances should be created and registered with System.registerPage() factory method
Source:
See:
  • System instances of this class holds by the System class

Members

addEventListener

Source:

addRenderLayer

Add render layer to the view
Source:

addRenderObject

Add render object to the view
Source:

audio :SystemAudioInterface

Source:

canvasInterface

Source:

createCanvasView

Creates new canvas layer and set it to the #views
Source:

draw :DrawObjectFactory

Source:

emit

Source:

isActive :boolean

Determines if this page render is Active or not
Source:

isAllFilesLoaded

Determines if all added files was loaded or not
Source:

isBoundariesCollision

Source:

isInitiated :boolean

Determines if this page is initialized or not
Source:

isObjectsCollision

Source:

loader :AssetsManager

Source:
Tutorials:

name :string

Current page name
Source:

removeEventListener

Source:

screenPageData :ScreenPageData

Source:

system :SystemInterface

Source:

systemSettings :SystemSettings

Source:

Methods

getView(key) → {CanvasView|undefined}

Parameters:
Name Type Description
key string
Source:
Returns:
Type
CanvasView | undefined

init()

Source:
Tutorials:
  • Tutorial: screen_pages_stages Custom logic for init stage

register()

Source:
Tutorials:
  • Tutorial: screen_pages_stages Custom logic for register stage

resize()

Custom logic for resize stage
Source:

start(optionsopt)

Custom logic for start stage
Parameters:
Name Type Attributes Description
options Object <optional>
Source:

stop()

Source:
Tutorials:
  • Tutorial: screen_pages_stages Custom logic for stop stage