melonJS
    Preparing search index...

    Function reload

    • reload the current level, and return a promise that settles once the level is in the world.

      Parameters

      Returns Promise<boolean>

      resolves true once the level is back in the world

      await me.level.reload({ async: true });
      
    • reload the current level.

      While the game loop is running the load is deferred to a timer, so this returns before anything is in the world — see level.load.

      Parameters

      • Optionaloptions: LevelLoadOptions & { async?: false }

        additional optional parameters

      Returns boolean

      true