checks_ver = [[width - 339, height + 100], [width - 441, height - 150], [width + 125, height - 170], [width + 373, height + 100]] # create the player object player = Car(width + 150, height + 230, 310, 0) # Player info name = "" time = 0 # Time of round (divide by frame_rate to get time in seconds) scores = score_board.ScoreBoard("score_board.txt") # set the phase for checking the checkpoints check_phase = 1 # create an instance for the game over function gameover = GameOver.Game_Over() # Buttons play_button = button.Button(pygame.image.load("graphics/play_button.png"), screen_width // 2, screen_height // 2 + 120, 400, 160) exit_button = button.Button(pygame.image.load("graphics/exit_button.png"), screen_width // 2, screen_height // 2 + 320, 400, 160) okay_button = button.Button(pygame.image.load("graphics/okay_button.png"), screen_width // 2, screen_height // 2 + 320, 400, 160) retry_button = button.Button(pygame.image.load("graphics/retry_button.png"), screen_width // 2, screen_height // 2 + 120, 400, 160) menu_button = button.Button(pygame.image.load("graphics/menu_button.png"),