Hello, I’ve been working to implement a main menu for a game I’ve been working on and I was wondering if there are any default fired events such as game::getReady and/or if there is any default class that is running at the beginning of the game being launched. Thank you for your time.
So you can have a script that runs first and triggers your main menu. A nice way to communicate between scripts is to fire events on the app that is passed inside the script definition. For example you could fire events from your UI like so:
app.fire('game:start')
when the user presses a button to start the game or something like
app.fire('game:credits')
etc. These are all just examples of events you could create (they don’t exist).