Function loadImage

  • Load an image from a given URL

    Parameters

    • url: string

      The URL to the image to be loaded

    • track: boolean = true

      True if we want to track the resource loading and report it

    • Optional id: string

      The ID to give the new image

    • Optional smooth: boolean

      True if we want to override pixel based scaling and attempt to render scaled versions smoothly

    Returns GameImage

    The loaded tile image

Generated using TypeDoc