sprite_sheet

the methods for the sprite_sheet object

make_animation(collumn, duration)creates an animated texture object from this sprite sheet
get(sprite_sheet_x, sprite_sheet_y)returns a specific texture saved in the sprite sheet.
fieldsthe fields stored in the sprite_sheet object
make_animation(collumn, duration)Source

creates an animated texture object from this sprite sheet

Parameters

  1. collumn number collumn the animated texture should use for the animation
  2. duration number duration of the animation

Returns

  1. animated_texture an animated texture object
get(sprite_sheet_x, sprite_sheet_y)Source

returns a specific texture saved in the sprite sheet.

Parameters

  1. sprite_sheet_x number x position of the texture in the sprite sheet
  2. sprite_sheet_y number y position of the texture in the sprite sheet

Returns

  1. texture a texture object
fieldsSource

the fields stored in the sprite_sheet object

spritesa 2D map of all the textures saved in the sprite sheet
sprite_widththe width of individual sprites in pixels
sprite_heightthe height of individual sprites in pixels
sprites_xthe amount of sprites saved in the sprite sheet in the x
sprites_ythe amount of sprites saved in the sprite sheet in the y
spritesSource

a 2D map of all the textures saved in the sprite sheet

sprite_widthSource

the width of individual sprites in pixels

sprite_heightSource

the height of individual sprites in pixels

sprites_xSource

the amount of sprites saved in the sprite sheet in the x

sprites_ySource

the amount of sprites saved in the sprite sheet in the y