Пример #1
0
def main():
    hs.HighScores().load()
    g = GameOver(0)
    g.start()

    g = GameOver(100000)
    g.start()
    ui.quit()
Пример #2
0
 def __init__(self, window, clock):
     self.window = window
     self.clock = clock
     self.paused = False
     self.waiting = False
     self.selected_player = 0
     self.player = None
     self.level = None
     self.high_scores = hs.HighScores()
Пример #3
0
 def input_text(self, text):
     new_scores = {}
     text = text.upper()
     old_scores = sorted(hs.HighScores.high_scores.keys())
     index = old_scores.index(self.replace)
     for key in old_scores[:index]:
         new_scores[key] = hs.HighScores.high_scores[key]
     new_scores[self.replace] = (text, self.score)
     for index in xrange(index + 1, len(hs.HighScores.high_scores)):
         new_scores[old_scores[index]] = hs.HighScores.high_scores[
             old_scores[index - 1]]
     hs.HighScores.high_scores = new_scores
     hs.HighScores().save()
     self.transition()
Пример #4
0
 def __init__(self):
     global high_scores
     high_scores = hs.HighScores()
     high_scores.load()
Пример #5
0
def main():
    hs.HighScores().load()
    s = SplashScreen()
    s.start()
    ui.quit()