[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] shapes other than rects?



>     #lots of good code to find overlapping rect areas
>
>     if mini_array1 and mini_array2:
>         print "collision"
>     else:
>         print "rects overlap, but no collision"

i'm not so sure the line if mini_array1 and mini_array2
will do the pixel-collision test correctly. i would think
it would need something more like this...

if anytrue(anytrue(mini_array1 & mini_array2)):
    print 'collide'
else:
    print 'miss'



anyways, good to see you're back around peter. you'll be
glad to know surfarray has been improved since you last
tried it. (i'd recommend the latest cvs for best surfarray results)


____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org