Пример #1
0
    czcionka = pygame.font.SysFont("comicsans", 70)
    text_render_engame = czcionka.render(text_endgame, True, (0, 0, 0))
    screen.fill(bg_green)
    screen.blit(text_render_endgame, (500, 300))
"""

while running:
    # print(game.select_started_rooms())
    mouse_x, mouse_y = None, None
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            pygame.quit()
            # dodać tutaj flage dla drugiego gracza o zakończeniu gry i poczekać na drugą zwrotną
            game.delete_game_record()
            game.delete_current_deck()
            game.reset_auction()
            running = False
            quit()
        if event.type == pygame.MOUSEBUTTONDOWN:
            mouse_x, mouse_y = pygame.mouse.get_pos()
    # możliwoć grania z robotem
    if use_device is None:
        use_device, ard_conn = device_choice_screen(mouse_x, mouse_y)
    # start gry if device not none?, co z grającymi bez bota?
    if not start_game and use_device is not None:
        screen.fill(bg_green)
        start_game = create_menu(mouse_x, mouse_y)
    if start_game and use_device is not None:
        who_playing = game.get_game_info(3)[0][0]
        if who_playing == 0:
            screen.fill((230, 122, 30))