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

[pygame] collision bug?



check this out:

>>> import pygame
>>> r1=pygame.Rect((0,0,10,10))
>>> r2=pygame.Rect((0,10,10,10))
>>> print r1.colliderect(r2)
0
>>> print r1.bottom, r2.top
10 10

they have overlapping edges, isn't that a collision?
sounds like there is a > instead of a >= comparision.


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