melonjs
    Preparing search index...

    Function setBaseURL

    • change the default baseURL for the given asset type.
      (this will prepend the asset URL and must finish with a '/')

      Parameters

      • type: string

        "*", "audio", "video", "binary", "image", "json", "js", "tmx", "tsx"

      • Optionalurl: string = "./"

        default base URL

      Returns void

      setBaseURL

      loader

      // change the base URL relative address for audio assets
      me.loader.setBaseURL("audio", "data/audio/");
      // change the base URL absolute address for all object types
      me.loader.setBaseURL("*", "http://myurl.com/")