Global.setScreenSize(infoObject.current_w, infoObject.current_h); Global.screen = pygame.display.set_mode(Global.screenSize, settings); startMenu(); initGame(); startApp(); # --------------------------------------------------- *\ # Main loop # --------------------------------------------------- */ while Global.isApplicationRunning: Render.onUpdate(); Update.onUpdate(); event = pygame.event.poll(); if(event.type == pygame.QUIT): Global.isApplicationRunning = False; pygame.quit(); os._exit(0); # Keyboard events if not (isGameStarting): if(event.type == pygame.KEYDOWN): k=deepcopy(Input.events); for e in k: for key in Input.events[e]['keys']: if(key == event.key):