import pygame

HEIGHT = 800
WIDTH = 600
FPS = 60

BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
RED = (255, 0, 0)
GREEN = (0, 255, 0)  # Цвет зеленого цвета был неправильно задан ранее
ORANGE = (255, 123, 0)

# Класс игрока
class Player(pygame.sprite.Sprite):
    def __init__(self):
        pygame.sprite.Sprite.__init__(self)


    #def update(self):

class Snake(pygame.sprite.Sprite):
    def __init__(self):
        super().__init__()
        self.image = pygame.Surfase((snake_block,snake_block))
        self.image.fill(RED)
        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



# Основная логика игры
pygame.init()
pygame.mixer.init()
screen = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Levumpa's Game")
clock = pygame.time.Clock()

all_sprites = pygame.sprite.Group()

player = Player()
all_sprites.add(player)

snake_block = 10
snake_speed = 15


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(ORANGE)
    all_sprites.draw(screen)
    pygame.display.flip()

pygame.quit()