def colli(self, x, y):
    if (x > 20):
        center = self.rect.center
        x = (x - 1)
        y = (y - 1)
        self.image = pygame.transform.scale(self.image, (x, y))
        self.rect = self.image.get_rect()
        self.rect.center = center
        self.image = pygame.transform.rotozoom(self.image, (- 90), 0.8)
    elif (x <= 20):
        center = self.rect.center
        self.image = pygame.transform.scale(self.image, (0, 0))
        self.rect = self.image.get_rect()
        self.rect.center = center
        self.image = pygame.transform.rotozoom(self.image, (- 90), 0.5)
def colli(self, x, y):
    if (x > 20):
        center = self.rect.center
        x = (x - 1)
        y = (y - 1)
        self.image = pygame.transform.scale(self.image, (x, y))
        self.rect = self.image.get_rect()
        self.rect.center = center
        self.image = pygame.transform.rotozoom(self.image, (- 90), 0.8)
    elif (x <= 20):
        center = self.rect.center
        self.image = pygame.transform.scale(self.image, (0, 0))
        self.rect = self.image.get_rect()
        self.rect.center = center
        self.image = pygame.transform.rotozoom(self.image, (- 90), 0.5)