allow sprite variation in constant-combinator
Posted: Sun May 21, 2017 5:50 pm
				
				Please allow multiple sprites in the constant-combinator prototype, these can then be selected with entity.graphics_variation like with the simple-entity:
Thanks,
Gerhard
			Code: Select all
data:extend{{
    name = "my-entity",
    type = "constant-combinator",
    sprites = {
        north = {
            { filename = "__mod__/graphic/sprite-north-1.png", width = 32, height = 32, },
            { filename = "__mod__/graphic/sprite-north-2.png", width = 32, height = 32, },
        },
        east = {
            { filename = "__mod__/graphic/sprite-east-1.png", width = 32, height = 32, },
            { filename = "__mod__/graphic/sprite-east-2.png", width = 32, height = 32, },
        },
        south = {
            { filename = "__mod__/graphic/sprite-south-1.png", width = 32, height = 32, },
            { filename = "__mod__/graphic/sprite-south-2.png", width = 32, height = 32, },
        },
        west = {
            { filename = "__mod__/graphic/sprite-west-1.png", width = 32, height = 32, },
            { filename = "__mod__/graphic/sprite-west-2.png", width = 32, height = 32, },
        },
    -- ...
}}Gerhard