Function add

  • add(format, levelId, callback?): boolean
  • 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

    Name

    add

    Memberof

    level

Settings

Member Visibility

AltStyle によって変換されたページ (->オリジナル) /