All Bundles

ImageSprite

Sprite image

Derived from: Sprite

Operations

GetAngle

Gets the image angle

method : public : GetAngle() ~ Float
Return
TypeDescription
Floatimage angle

GetFlip

Gets image flip

method : public : GetFlip() ~ RendererFlip
Return
TypeDescription
RendererFlipdirection to flip

IsOk

Initialization status flag

method : public : IsOk() ~ Bool
Return
TypeDescription
Booltrue if initialized, false otherwise

LoadImage

Loads an image

method : private : LoadImage(file:String, colorkey:Color) ~ Bool
Parameters
NameTypeDescription
fileStringimage to load
colorkeyColorkey color

Return
TypeDescription
Booltrue if success, false otherwise

Render

Renders an image

method : public : Render(x:Int, y:Int) ~ Nil
Parameters
NameTypeDescription
xIntx-position
yInty-position

Renders an image based upon position instance

method : public : Render() ~ Nil

SetAngle

Sets the image angle

method : public : SetAngle(angle:Float) ~ Nil
Parameters
NameTypeDescription
angleFloatimage angle

SetFlip

Sets flip of image

method : public : SetFlip(flip:RendererFlip) ~ Nil
Parameters
NameTypeDescription
flipRendererFlipdirection to flip