ImageSprite
Sprite image
Operations
GetAngle
Gets the image angle
method : public : GetAngle() ~ Float
Return
Type | Description |
---|---|
Float | image angle |
GetFlip
Gets image flip
method : public : GetFlip() ~ RendererFlip
Return
Type | Description |
---|---|
RendererFlip | direction to flip |
IsOk
Initialization status flag
method : public : IsOk() ~ Bool
Return
Type | Description |
---|---|
Bool | true if initialized, false otherwise |
LoadImage
Loads an image
method : private : LoadImage(file:String, colorkey:Color) ~ Bool
Parameters
Name | Type | Description |
---|---|---|
file | String | image to load |
colorkey | Color | key color |
Return
Type | Description |
---|---|
Bool | true if success, false otherwise |
Render
Renders an image
method : public : Render(x:Int, y:Int) ~ Nil
Parameters
Name | Type | Description |
---|---|---|
x | Int | x-position |
y | Int | y-position |
SetAngle
Sets the image angle
method : public : SetAngle(angle:Float) ~ Nil
Parameters
Name | Type | Description |
---|---|---|
angle | Float | image angle |
SetFlip
Sets flip of image
method : public : SetFlip(flip:RendererFlip) ~ Nil
Parameters
Name | Type | Description |
---|---|---|
flip | RendererFlip | direction to flip |