Code: Select all
make_particle
{
name = "blood-particle",
life_time = 180,
pictures = particle_animations.get_blood_particle_pictures({ tint = bloodtint(), scale = 0.75}),
shadows = particle_animations.get_blood_particle_pictures({ tint = shadowtint(), shift = util.by_pixel (1,0), scale = 0.75}),
draw_shadow_when_on_ground = false,
ended_in_water_trigger_effect = false,
movement_modifier_when_on_ground = 0,
render_layer = "higher-object-under"
},
factorio/data/base/prototypes/particle-animations.lua
Code: Select all
particle_animations.get_blood_particle_pictures = function(options)
local options = options or {}
return
{
sheet =
{
filename = "__base__/graphics/particle/blood-particle/blood-particle.png",
line_length = 12,
width = 32,
height = 24,
frame_count = 12,
variation_count = 7,
scale = 0.5 * options.scale,
shift = util.add_shift(util.by_pixel(0,0.5), options.shift)
}
}
end