Ejemplo n.º 1
0
 def d_d(previous_steps, horn_status):
     if judge(previous_steps, '4'):
         horn = list(horn_status)
         horn_moved = [
             horn[0], horn[1], horn[2], horn[3], horn[7], horn[4], horn[5],
             horn[6]
         ]
         return previous_steps + '4', ''.join(horn_moved)
     return None
Ejemplo n.º 2
0
 def f_f(previous_steps, horn_status):
     if judge(previous_steps, 'A'):
         horn = list(horn_status)
         horn_moved = [
             Horn_adding(horn[3]) + 1, horn[1], horn[2],
             Horn_adding(horn[7]) + 2,
             Horn_adding(horn[0]) + 2, horn[5], horn[6],
             Horn_adding(horn[4]) + 1
         ]
         return previous_steps + 'A', ''.join(horn_moved)
     return None
Ejemplo n.º 3
0
 def l_l(previous_steps, horn_status):
     if judge(previous_steps, '8'):
         horn = list(horn_status)
         horn_moved = [
             Horn_adding(horn[4]) + 2,
             Horn_adding(horn[0]) + 1, horn[2], horn[3],
             Horn_adding(horn[5]) + 1,
             Horn_adding(horn[1]) + 2, horn[6], horn[7]
         ]
         return previous_steps + '8', ''.join(horn_moved)
     return None
Ejemplo n.º 4
0
 def r(previous_steps, horn_status):
     if judge(previous_steps, '5'):
         horn = list(horn_status)
         horn_moved = [
             horn[0], horn[1],
             Horn_adding(horn[3]) + 2,
             Horn_adding(horn[7]) + 1, horn[4], horn[5],
             Horn_adding(horn[2]) + 1,
             Horn_adding(horn[6]) + 2
         ]
         return previous_steps + '5', ''.join(horn_moved)
     return None
Ejemplo n.º 5
0
            node_group.draw(screen)
            # score block
            score_text = main_font.render(str(map.combo(0)), True, UI.COMBO)
            score_text.set_alpha(UI.ALPHA)
            text_rect = score_text.get_rect()
            text_rect.right = 1074  # align to right to 150px
            text_rect.top = 380
            combo_text = combo_font.render("COMBO", True, UI.COMBO)
            combo_text.set_alpha(UI.ALPHA)
            number_text = score_font.render(str(map.score(0)), True, UI.COMBO)
            number_rect = number_text.get_rect()
            number_rect.right = 1900
            number_rect.top = 15

            # judge
            a, b, c = map.judge()
            judge_text = judge_font.render(a, True,
                                           b)  # color should be chaanged
            judge_text.set_alpha(UI.BLPHA)

            #thread_effect = threading.Thread(target=print_effect)
            #thread_effect.start()

            if (UI.ALPHA != 255):
                UI.ALPHA += 51

            if (UI.BLPHA != 0 and stack <= 5):  # fade out, ease-out
                stack += 1
                UI.BLPHA += 2 * stack - 10
            else:
                stack = -25