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