Skip to content

animation

FreeBodyEngine.core.files.loaders.animation #

SPRITESHEET_KEY = 'spritesheet' module-attribute #

load_animation(file) #

Loads a .fbanim file: a TOML document that may set a top-level default spritesheet path, plus any number of [name] tables - each a named animation with an optional loop flag, an optional per-animation spritesheet override, and a frames list. Each frame gives a duration and either a pos = [col, row] cell to slice out of the active spritesheet, or a standalone image path that replaces the spritesheet for that one frame.