#include
//This is a C program for "collision detection"//
int collide(int x, int y , int x2 , int y2)
{
int test[2] = { 55 , 100 };
if (test[0] < x or test[0] > x2)
{
printf("Does not collide");
return 0;
}
else if (test[1] < y or test[1] > y2)
{
printf("Does not collide");
return 0;
}
else
{
printf("Collision detected!");
}
}
int main()
{
collide(44,100,66,200);
}