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()
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()