|how would I get it so that my program knows how to intersect and also how to intersect
I had a thought if I could make a big massive picture and basically make a mask of that image like so
Unmasked image

Masked Image

That I could then Code it exactly like this probably going to be wrong here but its a guess
int Intersects(SDL_Rect HitBoxRect SDL_Rect ImageRect)
{ //if hitbox exists
if(HitBoxRect)
{
//do a loop that checks for value equality
for(count; count < 1; count++)
{
//they collide
if(HitBoxRect.x && ImageRect.x = 100)
{
//move image downwards by 1
ImageRect.x -= 1;
}
}
}
is this correct or somewhere near correct I want the simplest method : )