Types/RotatedSprite: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
m (fixed links)
Line 15: Line 15:
*very low
*very low
=== frame_width ===
=== frame_width ===
'''Type''': [[Types/unsigned]]
'''Type''': [[Types/uint]]


Width of single frame in pixels.
Width of single frame in pixels.
=== frame_height ===
=== frame_height ===
'''Type''': [[Types/unsigned]]
'''Type''': [[Types/uint]]


Height of single frame in pixels
Height of single frame in pixels
=== direction_count ===
=== direction_count ===
'''Type''': [[Types/unsigned]]
'''Type''': [[Types/uint]]


Count of direction (frames) specified.
Count of direction (frames) specified.
=== line_length ===
=== line_length ===
'''Type''': [[Types/unsigned]]
'''Type''': [[Types/uint]]


'''Defult''': 0
'''Defult''': 0
Line 34: Line 34:
0 means that all the picture are in one horizontal line.
0 means that all the picture are in one horizontal line.
=== x ===
=== x ===
'''Type''': [[Types/unsigned]]
'''Type''': [[Types/uint]]


'''Default''': 0
'''Default''': 0
Line 41: Line 41:


=== y ===
=== y ===
'''Type''': [[Types/unsigned]]
'''Type''': [[Types/uint]]


'''Default''': 0
'''Default''': 0
Line 48: Line 48:


=== shift ===
=== shift ===
'''Type''': [[Types/Vector]]
'''Type''': [[Types/vector]]


'''Default''': 0
'''Default''': 0
Line 60: Line 60:


=== axially_symmetrical ===
=== axially_symmetrical ===
'''Type''': [[Type/boolean]]
'''Type''': [[Types/bool]]


'''Default''': false
'''Default''': false
Line 66: Line 66:
When set to true, left the same picture is used for left/right direction, just flipped, this can save half of the space required, but is not usable once the picture contains shadows etc.
When set to true, left the same picture is used for left/right direction, just flipped, this can save half of the space required, but is not usable once the picture contains shadows etc.
=== apply_projection ===
=== apply_projection ===
'''Type''': [[Type/boolean]]
'''Type''': [[Types/bool]]


'''Default''': true
'''Default''': true

Revision as of 10:40, 10 September 2017

Basics

Specifies series of sprites used to visualise different rotations of the object.

Properties

filename

Type:Types/FileName

priority

Type:Types/string

Possible values:

  • extra-high
  • high
  • medium
  • low
  • very low

frame_width

Type: Types/uint

Width of single frame in pixels.

frame_height

Type: Types/uint

Height of single frame in pixels

direction_count

Type: Types/uint

Count of direction (frames) specified.

line_length

Type: Types/uint

Defult: 0

Used to specify the individual images in grid. 0 means that all the picture are in one horizontal line.

x

Type: Types/uint

Default: 0

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

y

Type: Types/uint

Default: 0

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

shift

Type: Types/vector

Default: 0

scale

Type: Types/double

Default: 1

Values different than 1 specify the scale of the picture on default zoom. Scale 2 means that the picture will be 2 times bigger on screen (and more pixelated).

axially_symmetrical

Type: Types/bool

Default: false

When set to true, left the same picture is used for left/right direction, just flipped, this can save half of the space required, but is not usable once the picture contains shadows etc.

apply_projection

Type: Types/bool

Default: true

Used to fix the inconsistency of direction of the entity in 3d when rendered and direction on the screen (where the 45 degree angle for projection is used).

Example

   pictures =
   {
     filename = "__base__/graphics/entity/radar/radar.png",
     priority = "low",
     frame_width = 169,
     frame_height = 140,
     axially_symmetrical = false,
     apply_proejction = false,
     direction_count = 64,
     line_length = 8,
     shift = {1.15, 0.75}
   }