v2026.5.3
All Bundles
Bundle SDL2-based game framework with sprite management, collision detection, tilemaps, camera, and scene graph. Builds on sdl2.obl for structured 2D game development. Compile with -lib sdl2.

ImageSprite

Sprite image

Inherits: 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

Render #

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