from sqare import Square from game import Game from highscore import Highscore import pygame import numpy as np from _thread import * import os SCREENSIZE = 905 hs = Highscore() hs.form() pygame.init() pygame.font.init() win = pygame.display.set_mode((SCREENSIZE + 400, SCREENSIZE)) test = Game(0, 0, 60, 200) back = Square(1000, 100, 0, 0, (100, 100, 100), test) fin = Square(1000, 350, 0, 0, (100, 100, 100), test) score = Square(1000, 600, 0, 0, (150, 80, 80), test) ext = Square(1255, 0, 0, 0, (100, 100, 100), Game(0, 0, 20, 50)) def end(x, game, win): if x: #print("reached end -- win") win.fill((255, 255, 255)) #s = "Gewonnen!! :)" #font = pygame.font.SysFont("comicsans", 80) #text = font.render(s, 1, (255,69,0)) #win.blit(text, (x,y)) for i in range(0, game.GAMESIZE):