1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
{
id: "water_controller",
prototype: ["liquid"],
zorder: -20,
properties: {
add_water_effect: "add_water(zone_x1, zone_y1, zone_x2, zone_y2)",
add_particle_effect: "[
add_particles('bubbles'),
fire_event('setup_particles')]",
},
on_setup_particles: "[
set(bubbles.area, [zone_x1, zone_y1, zone_x2, zone_y2]),
]",
animation: {
id: "normal",
image: "effects/particles.png",
x: 117, y: 42, w: 28, h: 28,
frames: 1,
duration: 1000,
},
particle_system: [
{
id: "bubbles",
type: "water",
number_of_particles: 100,
repeat_period: 200,
velocity_y: -1,
velocity_x: 0,
velocity_rand: 4,
dot_size: 2,
color: [120,160,255,100],
},
],
}
|