import pygame
from constats import BALL_RADIUS


class Ball(pygame.sprite.Sprite):
    radius = BALL_RADIUS
    color = "black"

    def __init__(self, position, *groups):
        super().__init__(*groups)
        self.position = position

        self.image = pygame.Surface([self.radius * 2, self.radius * 2], pygame.SRCALPHA)
        pygame.draw.circle(self.image, self.color, (self.radius, self.radius), self.radius)
        self.rect = self.image.get_rect()

    def update(self, x, y):
        self.rect.x = x - self.radius
        self.rect.y = y - self.radius

be4e3d712def3e43c2ed8fcd9849429e8e9837e6
<mask token>


class Ball(pygame.sprite.Sprite):
    <mask token>
    <mask token>

    def __init__(self, position, *groups):
        super().__init__(*groups)
        self.position = position
        self.image = pygame.Surface([self.radius * 2, self.radius * 2],
            pygame.SRCALPHA)
        pygame.draw.circle(self.image, self.color, (self.radius, self.
            radius), self.radius)
        self.rect = self.image.get_rect()
    <mask token>

<mask token>


class Ball(pygame.sprite.Sprite):
    <mask token>
    <mask token>

    def __init__(self, position, *groups):
        super().__init__(*groups)
        self.position = position
        self.image = pygame.Surface([self.radius * 2, self.radius * 2],
            pygame.SRCALPHA)
        pygame.draw.circle(self.image, self.color, (self.radius, self.
            radius), self.radius)
        self.rect = self.image.get_rect()

    def update(self, x, y):
        self.rect.x = x - self.radius
        self.rect.y = y - self.radius

<mask token>


class Ball(pygame.sprite.Sprite):
    radius = BALL_RADIUS
    color = 'black'

    def __init__(self, position, *groups):
        super().__init__(*groups)
        self.position = position
        self.image = pygame.Surface([self.radius * 2, self.radius * 2],
            pygame.SRCALPHA)
        pygame.draw.circle(self.image, self.color, (self.radius, self.
            radius), self.radius)
        self.rect = self.image.get_rect()

    def update(self, x, y):
        self.rect.x = x - self.radius
        self.rect.y = y - self.radius

import pygame
from constats import BALL_RADIUS


class Ball(pygame.sprite.Sprite):
    radius = BALL_RADIUS
    color = 'black'

    def __init__(self, position, *groups):
        super().__init__(*groups)
        self.position = position
        self.image = pygame.Surface([self.radius * 2, self.radius * 2],
            pygame.SRCALPHA)
        pygame.draw.circle(self.image, self.color, (self.radius, self.
            radius), self.radius)
        self.rect = self.image.get_rect()

    def update(self, x, y):
        self.rect.x = x - self.radius
        self.rect.y = y - self.radius

import pygame
from constats import BALL_RADIUS


class Ball(pygame.sprite.Sprite):
    radius = BALL_RADIUS
    color = "black"

    def __init__(self, position, *groups):
        super().__init__(*groups)
        self.position = position

        self.image = pygame.Surface([self.radius * 2, self.radius * 2], pygame.SRCALPHA)
        pygame.draw.circle(self.image, self.color, (self.radius, self.radius), self.radius)
        self.rect = self.image.get_rect()

    def update(self, x, y):
        self.rect.x = x - self.radius
        self.rect.y = y - self.radius
