Function add

  • add a level into the game manager (usually called by the preloader)

    Parameters

    • format: string

      level format (only "tmx" supported)

    • levelId: string

      the level id (or name)

    • Optionalcallback: Function

      a function to be called once the level is loaded

    Returns boolean

    true if the level was loaded

    add

    level