def mapgen_Area(InOut): if InOut == 0: global intro, out, level, fade_count, tempsc, mod, tempkeep tempkeep = ["intro", "out", "fade_count", "tempsc", "mod"] intro, out, fade_count, mod = 0, -1, 255, 0 if intro == 0: fade_count -= 5 level = hall([0, 0, "strt"], level) fader.image.set_alpha(fade_count) if len(level) > 5: tempsc = printmap(level) if fade_count <= 0: intro = -1 out = 0 if out >= 0: fade_count += 2 fader.image.set_alpha(fade_count) if fade_count >= 0: mod = 9 print(fade_count) 'draw' screen.image.fill(WHITE) if len(level) > 5: tempsc.draw(screen.image) screen.image.blit(pointer.image, pointer.rect.center) screeneffects.draw(screen.image) return InOut + mod
fader.image.set_alpha(fade_count) 'draw' screen.fill(CUSTOM) for button in menu: screen.blit(button.image, button.rect) screen.blit(pointer.image, pointer.rect.topleft) screeneffects.draw(screen) if mapgen_area: if intro_count == 0: level = hall([0, 0, "strt"], level) fade_count -= 5 fader.image.set_alpha(fade_count) if len(level) > 5: map = printmap(level) temp3 = True if fade_count <= -150: intro_count = -1 out_count = 0 if out_count >= 0: fade_count += 2 fader.image.set_alpha(fade_count) if fade_count >= 400: out_count = -1 intro_count = 0 mapgen_area = False map_at = hall([0, 0, "get_pos_strt"], level) play_area = True temp2 = False 'inputs'