@@ -0,0 +1,1236 @@
+import pygame%0Afrom pygame.locals import *%0Afrom image_loader import get_image%0Aimport Menu_Object%0Aimport os.path%0A%0A%0Aclass highscores_menu(object):%0A%0A%0A    def __init__(self, screen): #surface, color, x, y, length, height, width, text, text_color, font size%0A        self.screen = screen%0A        if not os.path.exists(%22saved_files/Highscores/%22):%0A            os.makedirs(%22saved_files/Highscores/%22)%0A        if os.path.isfile(%22saved_files/Highscores/scores.txt%22) == False:%0A            scores = open(%22saved_files/Highscores/scores.txt%22, %22w%22)%0A            scores.write(%22no scores %5Cn%22)%0A            scores.close()%0A        %0A        if os.path.isfile(%22saved_files/Highscores/scores.txt%22) == True:%0A            scores = open('saved_files/Highscores/scores.txt', 'r')%0A        %0A        self.back_button = Menu_Object.Button(screen, (135, 12, 12), 30, 580, 150, 100, 0, %22Back%22, (0, 0, 0), 35)%0A        %0A    #draws them%0A    %0A    def draw(self):%0A        self.screen.blit(get_image('assets%5Cimages%5C%5Cbackgrounds%5Chighscore.png').convert(), (0, 0, 1280, 720))%0A        self.back_button.draw()%0A        %0A    def handle_event(self, event):     %0A            %0A        if event.type == MOUSEBUTTONDOWN and self.back_button.pressed() == True:%0A            return %22main_menu%22%0A

Create highscores_menu.py