@John
No, there isn't any.
@Kamilche:
Rectangular/polygon collision is much faster than pixel perfect
collision. But ppcol is a viable alternative in certain games such as
street fighter or mk (the older ones)
Just an idea here. It would be nice if we did have different coll-d
algorithms in pygame; because people do a variety of games. Especially
rectangular, circular, convex-polygon and ppcol methods.
Regards
John Eriksson wrote:
I didn't now there where any pixel perfect collision code in pygame?
/John
ons 2007-01-31 klockan 15:13 +0530 skrev V. Karthik Kumar:
Sure, John!
We could also submit this patch to pygame, thereby making the basic
collision system faster. What say we make a patch?
Regards,
Karthik
John Eriksson wrote:
You are right! Your algorithm is actually a bit faster :-D
At first it seems you've added some extra loops but when looking closer
I saw that you're code check edges first instead of roaming thourgh the
pixels top to bottom.
Well done!
I would like to include your algorithm in the PixelPerfect example if
its ok with you?
Best Regards
/John