Ejemplo n.º 1
0
 def run(self):
     """
     Waits for the user input.
     """
     while inputs.check_for_key_press() == None:
         graphics.clear_display_surf()
         graphics.get_display_surf().blit(self.title_pause_surf, self.title_pause_rect)
         graphics.update_display_surf()           
         self.fps_clock.tick(4)
     inputs.clear_event_queue()            
Ejemplo n.º 2
0
 def run(self):
     """
     Waits for the user to either press the exit key or any other key to start the game
     
     """
     while inputs.check_for_key_press() == None:
         graphics.clear_display_surf()
         graphics.get_display_surf().blit(self.title_surf_menu, self.title_rect_menu)
         graphics.get_display_surf().blit(self.title_surf_enter, self.title_rect_enter)
         graphics.get_display_surf().blit(self.title_surf_esc, self.title_rect_esc)
         graphics.update_display_surf() 
         self.fps_clock.tick(4)
     inputs.clear_event_queue()