Exemplo n.º 1
0
fourth = 7

defenicoes = files.gera_def(first, second, third, fourth, switch_white,
                            dificuldade, botoes_defenicao[1],
                            botoes_defenicao[2], botoes_defenicao[3])
defenicoes = files.ler_def(defenicoes)
first, second, third, fourth, switch_white, dificuldade, botoes_defenicao[
    1], botoes_defenicao[2], botoes_defenicao[3] = files.act_def(defenicoes)

wrong = botoes_defenicao[1]
helps = botoes_defenicao[2]
fix = botoes_defenicao[3]

# Carrega corres botoes
base, alternativo, small_base, small_alternativo, mini_base, mini_alternativo, small_third, mini_third, small_fourth, \
    mini_fourth = Print.carrega_cores(first, second, third, fourth)
colour = mini_base
tela_cor = 0

# Ciclo do jogo
while not game_over:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            sys.exit()

        base, alternativo, small_base, small_alternativo, mini_base, mini_alternativo, small_third, mini_third,\
            small_fourth, mini_fourth = Print.carrega_cores(first, second, third, fourth)
        cor_letras = Print.print_fundo(screen, switch_white)

        if ecra == 1:
            # Ecra inicial do jogo