Home

SpriteSheet

Type

struct

Properties

layers

If this property is present, all SpriteSheet definitions have to be placed as entries in the array, and they will all be loaded from there. layers may not be an empty table. Each definition in the array may also have the layers property.

If this property is present, all other properties, including those inherited from SpriteParameters, are ignored.

variation_count

repeat_count

line_length

filenames

lines_per_file

Mandatory if filenames is defined.

dice

Number of slices this is sliced into when using the "optimized atlas packing" option. If you are a modder, you can just ignore this property. Example: If this is 4, the sprite will be sliced into a 4x4 grid.

dice_x

Same as dice above, but this specifies only how many slices there are on the x axis.

dice_y

Same as dice above, but this specifies only how many slices there are on the y axis.

filename

Only loaded, and mandatory if layers and filenames are not defined.

The path to the sprite file to use.