#
# Collision event handler for "ice cream"
#

Object	obj = getThisObject();
Object	other = getOtherObject();

if (other == getHero())
{
	float	a = 0.0;
	int	x = getObjectXPosition(obj) + 16;
	int	y = getObjectYPosition(obj) + 16;
	while (a < 360.0)
	{
		createParticleObject(makeCode("par2"), x, y, a, 3.0, 40);
		a = a + 20.0;
	}

	destroyObject(obj);
	
	nextLevel();
}

