addSprite

fun addSprite(identifier: String, url: URL)

Registers a sprite hosted at the provided URL under the given identifier.

Parameters

identifier

Unique name for the sprite resource.

url

Fully qualified URL pointing to the sprite image.