Factorio Prototype DocsVersion 1.1.107

TileSprite :: struct

Used by TilePrototype.

Children

Properties

count :: uint32

Frame count. [...]

Frame count. [...]

picture :: FileName
hr_version optional :: TileSprite

If this property exists and high resolution sprites are turned on, its contents are used to load the tile sprite. [...]

If this property exists and high resolution sprites are turned on, its contents are used to load the tile sprite. [...]

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 :: uint32

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. [...]

Properties

count :: uint32

Frame count.

Optional if it is loaded inside of a hr_version, see that property for more information.

picture :: FileName

hr_version :: TileSprite optional

If this property exists and high resolution sprites are turned on, its contents are used to load the tile sprite.

count in hr_version has to be either unspecified or the same as for normal resolution definition.

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 :: uint32 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.

Prototypes

Types