if instance_number(obj_rock_big) + instance_number(obj_rock_small) < (global.pts + 1500) / 100
		instance_create_layer(random_range(-100, 2020), random_range(-200, -100), "Instances", obj_rock_big);
if state == 1
{
	effect_create_above(ef_explosion, x, y, 1, c_grey);

	if instance_number(obj_rock_big) + instance_number(obj_rock_small) < (global.pts + 2400) / 150
		instance_create_layer(random_range(-100, 2020), random_range(-200, -100), "Instances", obj_rock_big);

	global.pts += 10;
	
	if !irandom(global.rnd--)
	{
		global.rnd = 2;
		instance_create_layer(x, y, "Instances", choose(obj_perk1, obj_perk2));
	}
}
else
{
	if state == -1.1
		effect_create_above(ef_explosion, x, y, 1, c_yellow);
	else
		effect_create_above(ef_explosion, x, y, 1, c_navy);
	global.pts += 15;
}
instance_destroy();