def runLoadingScreen(): # Initialize the window to display the screen on pygame.init() dvdSettings = Settings() screen = pygame.display.set_mode( (dvdSettings.screenWidth, dvdSettings.screenHeight)) pygame.display.set_caption("DVD Loading Screen") # Set a background color bgColor = dvdSettings.bgColor # Create an instance of the image logo = Logo(dvdSettings, screen) # Set the mouse to be invisible pygame.mouse.set_visible(False) running = True while running: af.checkEvents() logo.update(dvdSettings) af.updateScreen(screen, dvdSettings, logo)