SheetStrip
pykraken.SheetStrip A descriptor for one horizontal strip (row) in a sprite sheet.
More about SheetStrip
Defines a single animation within a sprite sheet by specifying the animation name, the number of frames to extract from the strip, and the playback speed in frames per second (FPS).
At a glance
4 membersReference
PYTHON APIConstructor
methodSheetStrip(name: str, frame_count: int, fps: float)Create a sprite sheet strip definition.
Args
- name (
str) — Unique identifier for this animation. - frame_count (
int) — Number of frames to extract from this strip/row. - fps (
float) — Frames per second for playback timing.
fps
propertyfps: floatThe playback speed in frames per second.
Determines how fast the animation plays. Higher values result in faster playback.
Type: float: The frames per second for this animation.
frame_count
propertyframe_count: intThe number of frames in this animation strip.
Specifies how many frames to extract from the horizontal strip in the sprite sheet, reading from left to right.
Type: int: The number of frames (must be positive).
name
propertyname: strThe unique name identifier for this animation strip.
Type: str: The animation name used to reference this strip.