Titled image sprite
Implements: Shape
OperationsAdds a tile at the specified location
method : public : AddTile(x:Int, y:Int) ~ ImageSprite
Name | Type | Description |
---|---|---|
x | Int | x coordinate |
y | Int | y coordinate |
Type | Description |
---|---|
ImageSprite | image sprite |
Increments the current x-position
method : public : AddX(x:Int) ~ Nil
Name | Type | Description |
---|---|---|
x | Int | increment to the current x-position |
Increments the current y-position
method : public : AddY(y:Int) ~ Nil
Name | Type | Description |
---|---|---|
y | Int | increment to the current y-position |
Destroys and frees sprite resources
method : public : Free() ~ Nil
Gets sprite height
method : public : GetHeight() ~ Int
Type | Description |
---|---|
Int | sprite height |
Gets relative sprite positions from original creation
method : public : GetPosition() ~ Position
Type | Description |
---|---|
Position | relative sprite position |
Gets sprite width
method : public : GetWidth() ~ Int
Type | Description |
---|---|
Int | sprite width |
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 |
Removes sprite
method : public : RemoveTile(sprite:ImageSprite) ~ Bool
Name | Type | Description |
---|---|---|
sprite | ImageSprite | sprite to remove |
Type | Description |
---|---|
Bool | true if found and removed, false otherwise |
Renders an images based upon position instances
method : public : Render() ~ Nil