Factorio Prototype DocsVersion 2.0.20

TileSpriteLayout :: struct - abstract

Children

Properties

picture :: FileName
scale optional :: float
x optional :: SpriteSizeType

Horizontal position of the sprite in the source file in pixels.

Horizontal position of the sprite in the source file in pixels.

y optional :: SpriteSizeType

Vertical position of the sprite in the source file in pixels.

Vertical position of the sprite in the source file in pixels.

line_length optional :: uint8

Once the specified number of pictures is loaded, other pictures are loaded on other line. [...]

Once the specified number of pictures is loaded, other pictures are loaded on other line. [...]

count optional :: uint8

Frame count.

Frame count.

Properties

picture :: FileName

scale :: float optional

Default: 1

x :: SpriteSizeType optional

Default: 0

Horizontal position of the sprite in the source file in pixels.

y :: SpriteSizeType optional

Default: 0

Vertical position of the sprite in the source file in pixels.

line_length :: uint8 optional

Default: 0

Once the specified number of pictures is loaded, other pictures are loaded on other line. This is to allow having longer animations in matrix, to input files with too high width. The game engine limits the width of any input files to 8192px, so it is compatible with most graphics cards. 0 means that all the pictures are in one horizontal line.

count :: uint8 optional

Default: 0

Frame count.

Prototypes

Types

Defines