1{
2id: "mushroom_hopper_blue",
3prototype: ["hittable"],
4tags: "swallowable",
5friction: 1000,
6traction: 1000,
7traction_in_air: 0,
8springiness: 100,
9properties: {
10	team: "'evil'",
11},
12vars: {
13	points_value: 9,
14	rebound: 0,
15},
16consts: {
17	solid_dimensions: ["common","enemy"],
18	basic_type: "mushroom_hopper_blue",
19	basic_animation: "stand",
20	thrown_type: "mushroom_hopper_blue.thrown",
21	frogourmet_tag: "mushroom_hopper_blue",
22},
23on_die: "[score(level,points_value), spawn_item(self), if(vars.died_in_water,
24																		[if(abs(water_bounds[1] - midpoint_y) > 40,
25																		spawn('water_splash_underwater_big', midpoint_x, midpoint_y, if(1d2=2,facing,-facing)),
26																		spawn('water_splash', midpoint_x, water_bounds[1]+10, if(1d2=2,facing,-facing))),
27																	sound('water-enter.ogg'),],
28																spawn('die_cloud', midpoint_x, midpoint_y, facing))]",
29on_land: "[if(velocity_y>300,set(vars.rebound, -(velocity_y*2)/3)),animation('land')]",
30on_collide_feet: "fire_event(me, 'land')",
31on_end_stand_anim: "[animation('hop')]",
32on_end_hop_anim: "[animation('fall'),set(velocity_y,-800-1d400),set(velocity_x, (200+1d100)* if(level.player.midpoint_x<midpoint_x,-1,1))]",
33on_end_fall_anim: "if(is_standing, fire_event(me, 'land'), animation('fall'))",
34
35#give it a little bounce, if it's falling fast
36on_end_land_anim: "if(vars.rebound,[animation('fall'),set(velocity_y,vars.rebound), set(vars.rebound,0)],animation('stand'))",
37solid_area: [8,11,15,21],
38solid_dimensions: ["enemy","common"],
39editor_info: {
40	category: "enemies, experimental",
41},
42animation: [
43	{
44		image: "enemies/mushroom-hopper-blue.png",
45		pad: 3,
46		accel_x: 0,
47		accel_y: 60,
48		body_area: "all",
49		attack_area: [5,5,17,10],
50		id: "hop",
51		rect: [27,1,49,23],
52		frames: 1,
53		duration: 5,
54	},
55	{
56		image: "enemies/mushroom-hopper-blue.png",
57		pad: 3,
58		accel_x: 0,
59		accel_y: 60,
60		body_area: "all",
61		attack_area: [5,5,17,10],
62		id: "land",
63		rect: [27,1,49,23],
64		frames: 1,
65		duration: 5,
66	},
67	{
68		image: "enemies/mushroom-hopper-blue.png",
69		pad: 3,
70		accel_x: 0,
71		accel_y: 60,
72		body_area: "all",
73		attack_area: [5,5,17,10],
74		id: "fall",
75		rect: [53,1,75,23],
76		frames: 1,
77		duration: 10,
78	},
79	{
80		image: "enemies/mushroom-hopper-blue.png",
81		pad: 3,
82		accel_x: 0,
83		accel_y: 60,
84		body_area: "all",
85		attack_area: [5,5,17,10],
86		id: "stand",
87		rect: [1,1,23,23],
88		frames: 1,
89		duration: 40,
90	},
91],
92object_type: {
93	id: "thrown",
94	prototype: ["throwable_small_enemy"],
95	solid_area: [8,11,15,21],
96	consts: {
97		basic_type: "mushroom_hopper_blue",
98		thrown_type: "mushroom_hopper_blue.thrown",
99		frogourmet_tag: "mushroom_hopper_blue",
100	},
101	animation: [
102		{
103			image: "enemies/mushroom-hopper-blue.png",
104			pad: 3,
105			accel_x: 0,
106			accel_y: 60,
107			id: "thrown",
108			thrown_area: "all",
109			duration: 60,
110			rect: [131,1,153,23],
111			frames: 1,
112			body_area: null,
113		},
114		{
115			image: "enemies/mushroom-hopper-blue.png",
116			pad: 3,
117			accel_x: 0,
118			accel_y: 60,
119			id: "on_back",
120			rect: [105,1,127,23],
121			frames: 3,
122			duration: 3,
123			body_area: "all",
124		},
125	],
126},
127}