예제 #1
0
 def change_page(self, word):
     self.current_page = wiki.open_page(word)
     self.links = wiki.gemify_page(self.current_page)
     self.tick_count = 0
     self.gems.empty()
     self.tooltips.empty()
     self.update_status_bar()
예제 #2
0
    def __init__(self, statusbar, powerupbar, main_plane):
        self.gems = pygame.sprite.Group()
        self.tooltips = pygame.sprite.Group()
        self.current_page = wiki.randomize_page()
        self.links = wiki.gemify_page(self.current_page)

        self.tick_count = 0
        self.statusbar = statusbar
        self.powerupbar = powerupbar
        self.main_plane = main_plane
        self.update_status_bar()