예제 #1
0
 def nextRound(self):
     g.screen.fill((0, 0, 0))
     self.next_button.set_sensitive(False)
     self.journal = True  # set to False if we come in via main()
     self.num = utils.get_num(self.level)
     self.lives, self.offset = utils.get_lives(self.level)
     self.status = None
     self.input = []
     self.attempts_list = []
     self.compare_list = []
예제 #2
0
 def __init__(self, level=3, parent=None):
     self.parent = parent
     self.level = level
     self.journal = True  # set to False if we come in via main()
     self.num = utils.get_num(self.level)
     self.lives, self.offset = utils.get_lives(self.level)
     self.status = None
     self.input = []
     self.compare_list = []
     self.attempts_list = []
     self.score = 0
     self.parent.update_score(self.score)
예제 #3
0
 def change_level(self, level):
     g.screen.fill((0, 0, 0))
     self.level = level
     self.journal = True  # set to False if we come in via main()
     self.num = utils.get_num(self.level)
     self.lives, self.offset = utils.get_lives(self.level)
     self.status = None
     self.input = []
     self.attempts_list = []
     self.compare_list = []
     self.score = 0
     self.parent.update_score(self.score)
     self.next_button.set_sensitive(False)