Advertisement

collision help

Started by November 19, 2004 06:34 PM
10 comments, last by cplus programmer 19 years, 10 months ago
dont tell me it is messy, I know, I am going to read a few books on game design and such.

and that doesnt work, I changed it to:
if(xpos < bxpos + 50 && ypos + 170 > bypos)

but it bounces if it is on or over it.
there are 10 types of people in this world, those who can do bianary and those who cant.
this works
if(bypos<ypos)
{
return;
}
if(xpos < bxpos + 50 && ypos + 170 > bypos)
{
bspeed = -bspeed;
buspeed = -buspeed;
printf("\nboom\n");
}
there are 10 types of people in this world, those who can do bianary and those who cant.

This topic is closed to new replies.

Advertisement