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