import pygame object1 = pygame.Rect((20, 50), (50, 100)) object2 = pygame.Rect((10, 10), (100, 100)) object3 = pygame.Rect((0, 0), (50, 50)) print(object1.colliderect(object2)) print(object1.colliderect(object3)) print(object2.colliderect(object3))