{
id: "dying_robot",
on_end_anim: "if(cycle > 100, die(), if(green = 0, [set(green, 255), set(blue, 255), animation('normal')], [set(green, 0), set(blue, 0), animation('normal')]))",
on_die: "[spawn('dying_robot_main_fragment', x + if(facing > 0, 0, -100), y, facing),
             spawn('dying_robot_leg_fragment1', x + if(facing > 0, 50, -150), y + 30, facing),
             spawn('dying_robot_leg_fragment2', x + if(facing > 0, 20, -120), y + 30, facing)]",
animation: {
	id: "normal",
	image: "vehicles/robot.png",
	rect: [0,42,47,82],
	accel_y: 80,
	frames: 1,
	duration: 3,
	scale: 2,
},
}