[CENTER[0] - MAX_RAD, CENTER[1] - 10, MAX_RAD, MAX_RAD + 50]) arc.update() dash.update() tap_to_play.update() if score_page: game_msg.update() over_msg.update() score_text.update(shadow=False) best_text.update(shadow=False) final_score_msg.update(score, shadow=False) high_score_msg.update(highscore, shadow=False) if home_btn.draw(win): home_page = True score_page = False game_page = False score = 0 score_msg = Message(WIDTH - 60, 50, 50, "0", score_font, WHITE, win) if replay_btn.draw(win): home_page = False score_page = False game_page = True player_alive = True score = 0 score_msg = Message(WIDTH - 60, 50, 50, "0", score_font, WHITE,
ball.update(color, True) tap_to_play.update() if score_page: if score_bg > 40: score_bg -= 1 win.fill((score_bg, score_bg, score_bg)) if score and score > high_score: high_score = score new_high_msg.update(shadow=False) final_score_msg.update(score, color) if close_btn.draw(win): running = False if replay_btn.draw(win): clicks = 0 ball.reset() start_rotation = False score = 0 final_score_msg = Message(144, HEIGHT // 2 - 50, 100, "0", final_score_font, WHITE, win) score_page = False game_page = True inner_center = [WIDTH // 2, HEIGHT // 2] line_type = 1