1{
2id: "rabbit_black",
3editor_info: {
4	category: "enemies, forest",
5},
6prototype: ["ant"],
7properties: {
8	bigjump: "def() [	set(vars.jump_counter,0),
9							set(velocity_y, -1200-1d400),
10							set(velocity_x, (250+1d500)*(player_facing))]",
11	smalljump: "def() [	add(vars.jump_counter,1),
12							set(velocity_y, -800 - 1d400),
13							set(velocity_x, 150-1d300)]",
14	player_facing: "if(midpoint_x - level.player.midpoint_x > 0, -1, 1)",
15	face_player: "if(facing != player_facing, animation('turn'))",
16	turns_at_cliffs: 0,
17},
18vars: {
19	points_value: 4,
20	jump_counter: 0,
21},
22consts: {
23	basic_type: "rabbit_black",
24	thrown_type: "rabbit_black.thrown",
25	frogourmet_tag: "rabbit_black",
26},
27on_jump: "[if(vars.jump_counter=3, bigjump(), smalljump() ),animation('jump')]",
28on_process_walk: "if(is_standing, if(facing!=player_facing, [set(facing, -facing),animation('turn')],if(cycle%50=0,fire_event('jump'))))",
29animation: [
30	{
31		image: "enemies/rabbit-black.png",
32		rotate_on_slope: true,
33		pad: 3,
34		accel_x: 250,
35		accel_y: 60,
36		body_area: "all",
37		attack_area: [15,18,26,26],
38		id: "stand",
39		frames: 3,
40		duration: 6,
41		rect: [3,1,27,28],
42	},
43	{
44		image: "enemies/rabbit-black.png",
45		rotate_on_slope: true,
46		pad: 3,
47		accel_x: 250,
48		accel_y: 60,
49		body_area: "all",
50
51		#blink variant
52		attack_area: [15,18,26,26],
53		id: "stand",
54
55		#blink variant
56		rect: [89,1,113,28],
57		frames: 3,
58		duration: 6,
59	},
60	{
61		image: "enemies/rabbit-black.png",
62		rotate_on_slope: true,
63		pad: 3,
64		accel_x: 0,
65		accel_y: 60,
66		body_area: "all",
67		attack_area: [15,18,26,26],
68		id: "jump",
69		rect: [89,33,113,60],
70		frames: 2,
71		duration: 6,
72	},
73	{
74		image: "enemies/rabbit-black.png",
75		rotate_on_slope: true,
76		pad: 3,
77		accel_x: 25,
78		accel_y: 60,
79		body_area: "all",
80		attack_area: [15,18,26,26],
81		id: "walk",
82		frames: 3,
83		duration: 6,
84		rect: [3,1,27,28],
85	},
86	{
87		image: "enemies/rabbit-black.png",
88		rotate_on_slope: true,
89		pad: 3,
90		accel_x: 0,
91		accel_y: 60,
92		body_area: "all",
93		attack_area: [15,18,26,26],
94		id: "spring",
95		rect: [3,33,27,60],
96		frames: 1,
97		duration: 4,
98	},
99	{
100		image: "enemies/rabbit-black.png",
101		rotate_on_slope: true,
102		pad: 3,
103		accel_x: 0,
104		accel_y: 60,
105		body_area: "all",
106		attack_area: [0,18,26,26],
107		id: "turn",
108		rect: [3,65,27,92],
109		frames: 3,
110		duration: 3,
111	},
112	{
113		image: "enemies/rabbit-black.png",
114		rotate_on_slope: true,
115		pad: 3,
116		accel_x: 0,
117		accel_y: 60,
118		body_area: "all",
119		attack_area: [15,18,26,26],
120		id: "hurt",
121		rect: [90,65,114,92],
122		frames: 1,
123		duration: 18,
124	},
125],
126object_type: {
127	id: "thrown",
128	prototype: ["throwable_small_enemy"],
129	solid_dimensions: ["common","enemy"],
130	consts: {
131		basic_type: "rabbit_black",
132		thrown_type: "rabbit_black.thrown",
133	},
134	animation: [
135		{
136			image: "enemies/rabbit-black.png",
137			id: "thrown",
138			thrown_area: "all",
139			duration: 60,
140			rect: [31,33,55,60],
141			frames: 1,
142			body_area: null,
143		},
144		{
145			image: "enemies/rabbit-black.png",
146			id: "on_back",
147			rect: [31,33,55,60],
148			frames: 2,
149			duration: 5,
150			body_area: "all",
151		},
152	],
153},
154}
155