Starting a Game


I have a scene as main page.

Clicking on it, it should load the game page. How will i do it?

I do not understand. There is a “Launch” button in the top right.


Your question is so unclear, but anyway, I think I understand it.

You have to create a new script asset for your scene, attach it to, let’s say, root and implement there your game states.

Like, application life cycle.

Attach script:"script");"AppController");

So your first state will be a main page (menu, etc, right?)
And you need a function like “StartDamnGame” where you will put your objects in right places, etc

Afterwards, you have to attach a event listener to your html element, which should reduce transition to game state.
And in listener function just call it like:;