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() ~ BoolReturn
| Type | Description |
|---|---|
| Bool | true if initialized, false otherwise |
Render #
Renders an image
method : public : Render(x:Int, y:Int) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| x | Int | x-position |
| y | Int | y-position |
RenderedText #
Renders the set text
method : public : RenderedText(text:String) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| text | String | text to render |
RenderedText #
Renders the set text
method : public : RenderedText(text:String, color:Color) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| text | String | text to render |
| color | Color | color of text |