API Docs for:
Show:

Component_WebStartBehavior Class

Module: gs

The web-start scene is used if the game has been loaded via mobile webbrowser. That web-start scene lets the player tap on the screen to start the actual game which is necessary to make audio-playback working because of browser-security.

Methods

initialize

()

Initializes the web-start scene. It just creates a full-screen DIV layer with a touch event-handler to play a sound if tapped and then switch to the language-menu / intro-scene to start the actual game.

prepareData

()

Prepares all data for the scene and loads the necessary graphic and audio resources.

prepareVisual

()

Prepares all visual game objects for the scene.

updateContent

()

Update the scene's content. Here you can implement any kind of additional logic you want.