{ id: "super_shooting_plant", prototype: ["stationary_vulnerable"], hitpoints: 200, zorder: 30, properties: { handle_knockback: "def(collide_with) null", }, vars: { points_value: 7, }, tmp: { anim_repeat: 0, }, consts: { basic_type: "super_shooting_plant", normal_repeat: 0, chargeup_repeat: 0, frogourmet_tag: "super_shooting_plant", }, on_end_normal_anim: "if(tmp.anim_repeat > consts.normal_repeat, [animation('prepare'), set(tmp.anim_repeat, 0)], [animation('normal'), add(tmp.anim_repeat, 1)])", on_end_prepare_anim: "animation('chargeup')", on_end_chargeup_anim: "if(tmp.anim_repeat > consts.chargeup_repeat, [animation('shoot'), set(tmp.anim_repeat, 0)], [animation('chargeup'), add(tmp.anim_repeat, 1)])", on_end_shoot_anim: "animation('normal')", on_shoot: "[sound('pollen-shot.wav'),spawn('super_shooting_plant.pollen_ball_huge', midpoint_x, midpoint_y, facing)]", solid_area: [4,13,23,27], editor_info: { category: "enemies, seaside", }, animation: [ { "@base": true, image: "enemies/super-shooting-plant.png", pad: 3, accel_y: 80, body_area: "all", }, { id: "normal", duration: 6, frames: 4, frames_per_row: 4, rect: [2,2,28,28], reverse: true, }, { id: "hurt", frames: 5, duration: 6, frames_per_row: 5, rect: [2,104,32,136], solid_area: [6,19,25,33], }, { id: "shoot", rect: [104,32,134,64], reverse: false, frames: 2, duration: 4, events: "4:shoot", frames_per_row: 2, solid_area: [6,19,25,33], }, { id: "chargeup", duration: 4, frames: 2, frames_per_row: 2, rect: [2,68,32,100], reverse: true, solid_area: [6,19,25,33], }, { id: "prepare", duration: 6, frames: 2, frames_per_row: 2, rect: [2,32,32,64], reverse: false, solid_area: [6,19,25,33], }, ], object_type: [ { id: "pollen_ball", 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: 250, velocity_x: 0, velocity_y: -500, accel_y: 20, body_area: "all", attack_area: "all", }, particle_system: { id: "particles", type: "point", generation_rate_millis: 250, dot_rounded: true, dot_size: 2, time_to_live: 12, time_to_live_rand: 24, colors: ["f9f9dbff","ffc20eff","ffc20eaa","ff7e00aa","ae4a2855"], pos_x: 10, pos_y: 10, velocity_x: -1500, velocity_x_rand: 3000, velocity_y: -1500, velocity_y_rand: 3000, }, }, { id: "pollen_ball_huge", prototype: ["shot"], always_active: true, affected_by_currents: true, object_level_collisions: true, properties: { team: "'evil'", attack_damage: 2, }, on_create: "add_particles('particles')", on_die: "spawn('pollen_impact_particle',mid_x,mid_y,0)", on_process: "[set(rotate, cycle*10)]", on_end_anim: "[spawn('pollen_impact_particle',mid_x,mid_y,0),spawn('super_shooting_plant.pollen_ball', mid_x+10, mid_y, facing, set(velocity_x, 150)),spawn('super_shooting_plant.pollen_ball', mid_x-10, mid_y, facing, set(velocity_x, -150)),die()]", animation: { id: "normal", image: "enemies/shooting-plant.png", rect: [104,2,118,16], frames: 1, duration: 50, velocity_x: 0, velocity_y: -1000, accel_y: 20, body_area: "all", attack_area: "all", }, particle_system: { id: "particles", type: "point", dot_rounded: true, generation_rate_millis: 250, dot_size: 3, time_to_live: 12, time_to_live_rand: 24, colors: ["f9f9dbff","ffc20eff","ffc20eaa","ff7e00aa","ae4a2855"], pos_x: 10, pos_y: 10, velocity_x: -1500, velocity_x_rand: 3000, velocity_y: -1500, velocity_y_rand: 3000, }, }, ], }