Skip to content

spritesheet

FreeBodyEngine.graphics.spritesheet #

Spritesheet(maps, size) dataclass #

The parsed contents of a .fbsheet file: a cols x rows grid shared across one or more whole-image texture maps (e.g. albedo, normal).

maps instance-attribute #

size instance-attribute #

get_cell(pos, map_name='albedo') #

Slices out the texture for one [col, row] cell of map_name.