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.

TextSprite

Rendered TTF text

Inherits: Sprite

Operations

IsOk #

Initialization status flag

method : public : IsOk() ~ Bool

Return

TypeDescription
Booltrue if initialized, false otherwise

Render #

Renders an image

method : public : Render(x:Int, y:Int) ~ Nil

Parameters

NameTypeDescription
xIntx-position
yInty-position

RenderedText #

Renders the set text

method : public : RenderedText(text:String) ~ Nil

Parameters

NameTypeDescription
textStringtext to render

RenderedText #

Renders the set text

method : public : RenderedText(text:String, color:Color) ~ Nil

Parameters

NameTypeDescription
textStringtext to render
colorColorcolor of text

SetColor #

Sets the text color

method : public : SetColor(color:Color) ~ Nil

Parameters

NameTypeDescription
colorColortext color

SetFont #

Sets the text font

method : public : SetFont(font:Font) ~ Nil

Parameters

NameTypeDescription
fontFontTTF