v2026.6.4
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.

AnimatedImageSprite

Animated sprite sheet

Inherits: ImageSprite

Operations

AddClip #

Adds a clip

method : public : AddClip(clip:Rect) ~ Nil

Parameters

NameTypeDescription
clipRectclip

AddClips #

Adds clips

method : public : AddClips(num_x_clips:Int, x_clip_size:Int, num_y_clips:Int, y_clip_size:Int) ~ Nil

Parameters

NameTypeDescription
num_x_clipsIntnumber of x-clips
x_clip_sizeIntx size of clips
num_y_clipsIntnumber of y-clips
y_clip_sizeInty size of clips

GetClipCount #

Get number of clips used in the sprite sheet

method : public : GetClipCount() ~ Int

Return

TypeDescription
Intnumber of clips

Render #

Renders sprite

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

Parameters

NameTypeDescription
xIntx-position
yInty-position
indexIntsprite image index

Render #

Renders sprite

method : public : Render(index:Int) ~ Nil

Parameters

NameTypeDescription
indexIntsprite image index