1
2player_rectangle = pygame.Rect(top, left, width, height)
3
4player_rectangle.colliderect(rect_you_want_to_test_is_being_overlapped)
5# Returns True or False if your rect collides with the rect given
6
7player_rectangle.collidelist(list_of_rects)
8# Tests if the player rect collides with a list of rects, returns index of
9# rect, give -1 if no rect collides.
10
11