melonJS
    Preparing search index...

    Function onReady

    • specify a function to execute when the Device is fully loaded and ready

      Parameters

      • fn: () => void

        the function to be executed

      Returns void

      // the modern equivalent is simply to await the Application
      const app = new Application(640, 480, { parent: "screen" });
      await app.init();

      since 18.3.0 — no longer needed when using Application as entry point.