def _create_and_scale_sprite(self, resource_name): knight_image = image.load(resource_name) sprite_scaling = self._calculate_scaling_for_sprite(knight_image.width, SQUARE_SIZE * CHESS_PIECE_SCALING) sprite = Sprite(knight_image, self.x, self.y) sprite.update(self.x, self.y, scale=sprite_scaling) sprite.anchor_x = sprite.width // 2 sprite.anchor_y = sprite.height // 2 return sprite