Skip to content

SpriteSheet

Parameters

NameTypeDescription
sizetuple
max_columnsint

Methods

open

Create a new spritesheet

Parameters

NameTypeDescription
fpstr
formats

new

resize

Resize the spritesheet to fit more spites

Parameters

NameTypeDescription
rowint
columnint

show

Show the spritesheet

add_sprite

Add an image sprite to the spritesheet

Parameters

NameTypeDescription
fpstr
namestr
formats

save

Parameters

NameTypeDescription
fpstr
format

get_sprite

Get a sprite from the spritesheet using the sprite position.

Parameters

NameTypeDescription
rowint
columnint

get_sprite_name

Get a sprite from the spritesheet using the sprite name

Parameters

NameTypeDescription
namestr

Not associated with or approved by Mojang Studios or Microsoft