Ejemplo n.º 1
0
 def run(self):
     """
     Waits for the user input.
     """
     while not inputs.is_key_pressed():
         graphics.clear_display_surf(BLACK)
         graphics.get_display_surf().blit(self.title_win_surf, self.title_win_rect)
         graphics.flip_display_surf()           
         self.fps_clock.tick(4)
     inputs.clear_event_queue()            
Ejemplo n.º 2
0
 def run(self):
     """
     Waits for the user input.
     """
     while not inputs.is_key_pressed():
         graphics.clear_display_surf(BLACK)
         graphics.get_display_surf().blit(self.title_win_surf,
                                          self.title_win_rect)
         graphics.flip_display_surf()
         self.fps_clock.tick(4)
     inputs.clear_event_queue()
Ejemplo n.º 3
0
 def run(self):
     """
     Waits for the user to either press the exit key or any other key to start the game       
     """
     while not inputs.is_key_pressed(): 
         graphics.clear_display_surf(BLACK)
         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.flip_display_surf()
         self.fps_clock.tick(4)
     inputs.clear_event_queue()
Ejemplo n.º 4
0
 def run(self):
     """
     Waits for the user to either press the exit key or any other key to start the game       
     """
     while not inputs.is_key_pressed():
         graphics.clear_display_surf(BLACK)
         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.flip_display_surf()
         self.fps_clock.tick(4)
     inputs.clear_event_queue()