Check Priority Que

Hep meh

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
void hitDetection()
{
	for(int i = 0; i < numOfBullets; i++)
	{
		for(int k = 0; k < level+3; k++)
		dist = pow(bulletX[i]-alienX[k],2) + pow(bulletY[i]-alienY[k],2);
		dist = sqrt(dist);
		if(dist < 20)
		{
			alienOn[i] = false;
			alienCount--;
		}
	}
}
Last edited on
Topic archived. No new replies allowed.