Function onLevelLoaded

  • Fired when a level is fully loaded and all renderable instantiated.
    Additionnaly the level id will also be passed to the called function.

    Returns void

    // call myFunction () everytime a level is loaded
    me.game.onLevelLoaded = this.myFunction.bind(this);