import pygame

WIDTH = 720
HEIGHT = 800
FPS = 60

WHITE = (255, 255, 255)  # Белый цвет
BLACK = (0, 0, 0)  # Черный
RED = (255, 0, 0)  # Красный
GREEN = (0, 255, 0)  # Зеленый
BLUE = (0, 0, 255)  # Синий
VIOLET = (238, 130, 238)  # Фиолетовый
YELLOW = (255, 255, 0)  # Желтый

pygame.init()
pygame.mixer.init()
screen = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("python in python")
clock = pygame.time.Clock()

snake_block = 10
snake_speed = 15

class Snake(pygame.sprite.Sprite):
    def __init__(self):
        super().__init__()
        self.image = pygame.Surface((snake_block, snake_block))
        self.image.fill(YELLOW)
        self.rect = self.image.get_rect()
        self.rect.x = WIDTH/2
        self.rect.y = HEIGHT/2
        self.dx = 0
        self.dy = 0
        self.body = []
        self.lenght = 1
        self.score = 0

    running = True
    while running:
        clock.tick(FPS)

    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            running = False

    all_sprites.update()

    screen.fill(WHITE)
    all_sprites.draw(screen)
    pygame.display.flip()

pygame.quit()
