collisions pygame rect
#For detecting collisions in pygame
Rect1 = pg.Rect(x, y, width, height)
Rect2 = pg.Rect(x, y, width, height)
if Rect1.colliderect(Rect2):
#Do something
Delightful Dog