Class: Sprite

Graphics.Sprite

sprite graphic class

new Graphics.Sprite (game, width, height, url)

Name Type Description
game Core.Game the game object
width Number width of the sprite.
height Number height of the sprite.
url String the URL of the sprite graphic

Members

height Number

height

width Number

width

Methods

render ()

renders the sprite

setImageSrcFromAsset (asset)

gets the resource URL from asset manager by itself. (assumes default path)
Name Type Description
asset String asset file name