instance method Game#getSpriteset
Game#getSpriteset(relativeUrl[, callback = null]) → Spriteset
-
relativeUrl
(String
) – A URL relative to theGame#root
of an image resource to load. -
callback
(Function
) – Optional. AFunction
to invoke when the image loading process has completed, successfully or not. If an error occured (ex: file not found), anError
object will be passed as the first argument tocallback
.
A convienience function that returns a new
Spriteset
, but forcing the
URL to be relative to Game#root
, instead of the default.