def main(screen): pygame.mixer.init() pygame.mixer.music.load(BGMPath) pygame.mixer.music.play(-1, 0.0) pygame.font.init() fond_small = pygame.font.Font('font/myfont.ttf', 18) font_big = pygame.font.Font('font/myfont.ttf', 30) level = Levels.Level1() is_clearance = startLevelGame(level, screen, fond_small) showText(screen, font_big, is_clearance, True)
def main(screen): pygame.mixer.init() pygame.mixer.music.load(BGMPATH) pygame.mixer.music.play(-1, 0.0) pygame.font.init() font_small = pygame.font.Font(FONTPATH, 18) font_big = pygame.font.Font(FONTPATH, 24) for num_level in range(1, Levels.NUMLEVELS + 1): if num_level == 1: level = Levels.Level1() is_clearance = startLevelGame(level, screen, font_small) if not is_clearance: showText(screen, font_big, is_clearance)