Ejemplo n.º 1
0
 def show_previous_window_end_loop(self, window: Window) -> None:
     self.menu_img.image = window.save_screen()
     self.menu_img.center = window.center
     offset = 50
     while self.game_img.left < window.right:
         self.game_img.move_ip(offset, 0)
         self.menu_img.draw(window.surface)
         self.game_img.draw(window.surface)
         window.refresh(pump=True)
         pygame.time.wait(10)
Ejemplo n.º 2
0
 def show_new_looping_window(self, window: Window) -> None:
     self.game_img.image = window.save_screen()
     self.game_img.midleft = window.midright
     offset = 50
     while self.game_img.left > 0:
         self.game_img.left = max(self.game_img.left - offset, 0)
         self.menu_img.draw(window.surface)
         self.game_img.draw(window.surface)
         window.refresh(pump=True)
         pygame.time.wait(10)
Ejemplo n.º 3
0
 def hide_actual_looping_window_end_loop(self, window: Window) -> None:
     self.game_img.image = window.save_screen()
     self.game_img.center = window.center
Ejemplo n.º 4
0
 def hide_actual_looping_window_start_loop(self, window: Window) -> None:
     self.menu_img.image = window.save_screen()
     self.menu_img.center = window.center