This is a boiler:
Code: Select all
animation =
{
filename = "__base__/graphics/entity/boiler/remnants/boiler-remnants.png",
line_length = 1,
width = 138,
height = 110,
frame_count = 1,
variation_count = 1,
axially_symmetrical = false,
direction_count = 4,
shift = util.by_pixel(0, -3),
hr_version =
{
filename = "__base__/graphics/entity/boiler/remnants/hr-boiler-remnants.png",
line_length = 1,
width = 274,
height = 220,
frame_count = 1,
variation_count = 1,
axially_symmetrical = false,
direction_count = 4,
shift = util.by_pixel(-0.5, -3),
scale = 0.5,
},
}
Code: Select all
animation = make_rotated_animation_variations_from_sheet (1,
{
filename = "__base__/graphics/entity/steam-engine/remnants/steam-engine-remnants.png",
line_length = 1,
width = 232,
height = 194,
frame_count = 1,
variation_count = 1,
axially_symmetrical = false,
direction_count = 4,
shift = util.by_pixel(17, 7),
hr_version =
{
filename = "__base__/graphics/entity/steam-engine/remnants/hr-steam-engine-remnants.png",
line_length = 1,
width = 462,
height = 386,
frame_count = 1,
variation_count = 1,
axially_symmetrical = false,
direction_count = 4,
shift = util.by_pixel(17, 6.5),
scale = 0.5,
},
}
For a boiler: animation.blahblah
For a steam-engine: animation[1].blahblah.
I had been trying to be as efficient as possible in duplicating remnants and editing the filename properties, as aside from being nested for the steam-engine their layout is identical.
:C