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) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| clip | Rect | clip |
AddClips #
Adds clips
method : public : AddClips(num_x_clips:Int, x_clip_size:Int, num_y_clips:Int, y_clip_size:Int) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| num_x_clips | Int | number of x-clips |
| x_clip_size | Int | x size of clips |
| num_y_clips | Int | number of y-clips |
| y_clip_size | Int | y size of clips |
GetClipCount #
Get number of clips used in the sprite sheet
method : public : GetClipCount() ~ IntReturn
| Type | Description |
|---|---|
| Int | number of clips |