{ id: "pollen_ball_generic", always_active: true, affected_by_currents: true, object_level_collisions: true, prototype: ["shot"], on_create: "add_particles('particles')", on_die: "[spawn('pollen_impact_particle',midpoint_x,midpoint_y,0)]", timer_frequency: 4, on_timer: "set(rotate, cycle*10)", on_end_anim: "die()", on_enter_water: "[add_wave(midpoint_x, y2, 500, velocity_y, 10*velocity_y, 100, 100), add_wave(midpoint_x, y2, -500, velocity_y, 10*velocity_y, 100, 100), die()]", zorder: 10, animation: { id: "normal", image: "enemies/shooting-plant.png", rect: [90,2,100,12], frames: 1, duration: 400, body_area: "all", attack_area: "all", }, particle_system: { id: "particles", type: "point", generation_rate_millis: 250, time_to_live: 12, time_to_live_rand: 24, colors: ["f9f9dbff","ffc20eff","ffc20e55","ff7e0055","ae4a2855"], pos_x: 10, pos_y: 10, velocity_x: -1500, velocity_x_rand: 3000, velocity_y: -1500, velocity_y_rand: 3000, }, }