Exemple #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()            
Exemple #2
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()            
Exemple #3
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()
Exemple #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()
Exemple #5
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()
Exemple #6
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()