Factorio Prototype DocsVersion 1.1.107

SpriteVariations :: struct or SpriteSheet or array[Sprite] Example code

Properties

sheet :: SpriteSheet

Examples

-- array of sprites
pictures =
{
  { size = 64, filename = "__base__/graphics/icons/coal.png",   scale = 0.25, mipmap_count = 4 },
  { size = 64, filename = "__base__/graphics/icons/coal-1.png", scale = 0.25, mipmap_count = 4 },
  { size = 64, filename = "__base__/graphics/icons/coal-2.png", scale = 0.25, mipmap_count = 4 },
  { size = 64, filename = "__base__/graphics/icons/coal-3.png", scale = 0.25, mipmap_count = 4 }
}
-- sprite sheet using "sheet"
connection_patches_connected =
{
  sheet =
  {
    filename = "__base__/graphics/entity/nuclear-reactor/reactor-connect-patches.png",
    width = 32,
    height = 32,
    variation_count = 12,
    hr_version =
    {
      filename = "__base__/graphics/entity/nuclear-reactor/hr-reactor-connect-patches.png",
      width = 64,
      height = 64,
      variation_count = 12,
      scale = 0.5
    }
  }
}

Type used in

Prototypes

Types