+ scaled_width = self.surface.get_width() - self.animation
+ scaled_height = self.surface.get_height() - self.animation
+ scaled_position = (self.pos[0] + (self.animation / 2),
+ self.pos[1] + (self.animation / 2))
+ if self.animation > 0:
+ self.animation = max(0, self.animation - 4)
+ scaled_surface = pygame.transform.scale(
+ self.surface, (scaled_width, scaled_height))
+ surface.blit(scaled_surface, scaled_position)