@@ -0,0 +1,2431 @@
+__author__ = 'mcgyver5'%0Aimport sys%0Aimport time%0Aimport pygame%0Aimport os%0Afrom pygame.locals import *%0Aimport globals%0Adef menu_render(winSurf,textList,startPos,sepDist,fontSize=40,h_offset=0):%0A    print(%22MENU RENDER%22)%0A    basicFont = pygame.font.SysFont(None, fontSize)%0A    for str in textList:%0A        tt = basicFont.render(str,True, globals.WHITE,globals.RED)%0A        ttRect = tt.get_rect()%0A        ttRect.centerx = winSurf.get_rect().centerx + h_offset%0A        ttRect.centery = winSurf.get_rect().centery + startPos%0A        startPos = startPos + sepDist%0A        winSurf.blit(tt,ttRect)%0A%0Adef number_render(winSurf,xpos,ypos,fontSize=40, h_offset=200):%0A    print(%22NUMBER RENDER%22)%0A    str = %22100%22%0A    basicFont = pygame.font.SysFont(None, fontSize)%0A    tt = basicFont.render(str,True, globals.WHITE,globals.RED)%0A    ttRect = tt.get_rect()%0A    ttRect.centerx = winSurf.get_rect().centerx + h_offset%0A    ttRect.centery = winSurf.get_rect().centery + ypos%0A    winSurf.blit(tt,ttRect)%0A%0Adef show_fade():%0A    print(%22SHOW FADE%22)%0A    fadeList = %5B%2220%22,%2230%22,%2260%22,%22100%22,%22200%22,%22500%22,%221000%22%5D%0A    number_render(winSurf, 60,30,20,100)%0A    # def menu_render(textList,startPos,sepDist,fontSize=40,h_offset=0):%0A%0Adef display_settings():%0A    # settings has speed, blocksize, fade%0A    settingsList = %5B%22Start Speed: s%22,%22Block Size: b%22,%22Fade: f%22%5D%0A    menu_render(winSurf,settingsList,60,60,30)%0A%0A%0Adef show_speed():%0A    pass%0A%0AmenuList = %5B%22Start: a%22, %22Settings: c%22%5D%0A%0A#Startup screen:%0Astartup = True%0Asettings = False%0AwinSurf = pygame.display.set_mode((globals.WINWIDTH,globals.WINHEIGHT),0,32)%0Apygame.display.set_caption('Animation!!!!!!')%0Amenu_render(winSurf,menuList,-200,100)%0Apygame.display.update()%0AsettingShow = False%0A%0Awhile startup:%0A    for event in pygame.event.get():%0A        if event.type == pygame.locals.QUIT:%0A            pygame.quit()%0A            sys.exit()%0A%0A        if event.type == pygame.locals.KEYDOWN:%0A            if event.key == ord('a'):%0A                startup = False%0A            if event.key == ord('c'):%0A                settingShow = True%0A                display_settings()%0A                pygame.display.update()%0A            if event.key == pygame.locals.K_ESCAPE:%0A                pygame.quit()%0A                sys.exit()%0A            if settingShow:%0A                if event.key == ord('f'):%0A                    show_fade()%0A                if event.key == ord('s'):%0A                    show_speed()%0A                pygame.display.update()

work on menu