{
id: "rabbit_green",
editor_info: {
	category: "enemies, forest",
},
prototype: ["ant"],
properties: {
	bigjump: "def() [	set(vars.jump_counter,0),
							set(velocity_y, -500-1d800),
							set(velocity_x, (400+1d1200)*(player_facing))]",
	smalljump: "def() [	add(vars.jump_counter,1),
							set(velocity_y, -1100 - 1d400), 
							set(velocity_x, 200-1d400)]",
	player_facing: "if(midpoint_x - level.player.midpoint_x > 0, -1, 1)",
	face_player: "if(facing != player_facing, animation('turn'))",
	turns_at_cliffs: 0,
},
vars: {
	points_value: 4,
	jump_counter: 0,
},
consts: {
	basic_type: "rabbit_green",
	thrown_type: "rabbit_green.thrown",
	frogourmet_tag: "rabbit_green",
},
on_jump: "[if(vars.jump_counter=1, bigjump(), smalljump() ),animation('jump')]",
on_process_walk: "if(is_standing, if(facing!=player_facing, [set(facing, -facing),animation('turn')],if(cycle%5=0,fire_event('jump'))))",
animation: [
	{
		image: "enemies/rabbit-green.png",
		rotate_on_slope: true,
		pad: 3,
		accel_x: 250,
		accel_y: 60,
		body_area: "all",
		attack_area: [15,18,26,26],
		id: "stand",
		frames: 3,
		duration: 6,
		rect: [3,1,27,28],
	},
	{
		image: "enemies/rabbit-green.png",
		rotate_on_slope: true,
		pad: 3,
		accel_x: 250,
		accel_y: 60,
		body_area: "all",

		#blink variant
		attack_area: [15,18,26,26],
		id: "stand",

		#blink variant
		rect: [89,1,113,28],
		frames: 3,
		duration: 6,
	},
	{
		image: "enemies/rabbit-green.png",
		rotate_on_slope: true,
		pad: 3,
		accel_x: 0,
		accel_y: 60,
		body_area: "all",
		attack_area: [15,18,26,26],
		id: "jump",
		rect: [89,33,113,60],
		frames: 2,
		duration: 6,
	},
	{
		image: "enemies/rabbit-green.png",
		rotate_on_slope: true,
		pad: 3,
		accel_x: 25,
		accel_y: 60,
		body_area: "all",
		attack_area: [15,18,26,26],
		id: "walk",
		frames: 3,
		duration: 6,
		rect: [3,1,27,28],
	},
	{
		image: "enemies/rabbit-green.png",
		rotate_on_slope: true,
		pad: 3,
		accel_x: 0,
		accel_y: 60,
		body_area: "all",
		attack_area: [15,18,26,26],
		id: "spring",
		rect: [3,33,27,60],
		frames: 1,
		duration: 4,
	},
	{
		image: "enemies/rabbit-green.png",
		rotate_on_slope: true,
		pad: 3,
		accel_x: 0,
		accel_y: 60,
		body_area: "all",
		attack_area: [0,18,26,26],
		id: "turn",
		rect: [3,65,27,92],
		frames: 3,
		duration: 3,
	},
	{
		image: "enemies/rabbit-green.png",
		rotate_on_slope: true,
		pad: 3,
		accel_x: 0,
		accel_y: 60,
		body_area: "all",
		attack_area: [15,18,26,26],
		id: "hurt",
		rect: [90,65,114,92],
		frames: 1,
		duration: 18,
	},
],
object_type: {
	id: "thrown",
	prototype: ["throwable_small_enemy"],
	solid_dimensions: ["common","enemy"],
	consts: {
		basic_type: "rabbit_green",
		thrown_type: "rabbit_green.thrown",
	},
	animation: [
		{
			image: "enemies/rabbit-green.png",
			id: "thrown",
			thrown_area: "all",
			duration: 60,
			rect: [31,33,55,60],
			frames: 1,
			body_area: null,
		},
		{
			image: "enemies/rabbit-green.png",
			id: "on_back",
			rect: [31,33,55,60],
			frames: 2,
			duration: 5,
			body_area: "all",
		},
	],
},
}
