import pygame object1 = pygame.Rect((20,50), (50, 100)) object2 = object1.move(100,100) print(object1.topleft) print(object2.topleft) 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)) class Player(pygame.sprite.Sprite): def __init__(self): super().__init__() self.image = pygame.image.load("Player_Sprite_R.png") self.rect = self.image.get_rect() pygame.draw.rect(surface, color, pygame.Rect(30,30,60,60))