melonJS
    Preparing search index...

    Function add

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

      Parameters

      • format: string

        level format ("tmx" for Tiled maps, "gltf" / "glb" for 3D scenes)

      • 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