Beispiel #1
0
    def render(self):
        super(HighScoreScene, self).render()
        self.getGame().screen.blit(self.__highscore, (250, 0))
        self.getGame().screen.blit(self.__score2, (450, 50))
        self.getGame().screen.blit(self.__score1, (5, 250))

        highscore = Highscore()

        x = 450
        y = 250
        for score in highscore.getScores():
            self.addText(score[0], x, y, size=25)
            self.addText(str(score[1]), x + 200, y, size=25)
            y += 30
    def render(self):
        self.getGame().screen.blit(self.__highscoreSprite, (50, 50))
        self.clearText()
        highScores = Highscore()

        x = 350
        y = 100

        for score in highScores.getScores():
            self.addText(score[0], x, y, size=30)
            self.addText(str(score[0]), x + 200, y, size=30)
            y += 30

        self.addText("Press Enter to restart the game", x, y + 60, size=30)

        super(HighscoreScene, self).render()
    def render(self):
        self.getGame().screen.blit(self.__highscoreSprite, (50, 50))
        self.clearText()

        highscore = Highscore()

        x = 350
        y = 100
        for score in highscore.getScores():
            self.addText(score[0], x, y, size=30)  # print the player name
            self.addText(str(score[1]), x + 200, y,
                         size=30)  # print the player score
            y += 30  # increment the y value for next highscore entry

        self.addText("Press F1 to start a new game", x, y + 60, size=30)

        super(HighscoreScene, self).render()
    def render(self):
        self.getGame().screen.blit(self.__highScoreSprite, (50, 50))

        self.clearText()

        highscore = Highscore()

        x = 350
        y = 100
        for score in highscore.getScores():
            self.addText(score[0], x, y, size=30)
            self.addText(str(score[1]), x + 200, y, size=30)

            y += 30

        self.addText("Press F1 to start The Game", 50, 300, size=30)

        super(HighscoreScene, self).render()
    def render(self):
        self.getGame().screen.blit(self.__highscoreSprite, (50, 50))

        self.clearText()

        highscore  = Highscore()

        x = 350
        y = 100
        for score in highscore.getScores():
            self.addText(score[0], x, y, size = 30)
            self.addText(str(score[1]), x + 200, y, size = 30)

            y += 30

        self.addText("Press F1 to start a new game", x, y + 60, size = 30)

        super(HighscoreScene, self).render()
Beispiel #6
0
    def render(self):

        self.getGame().screen.blit(self.__highscoreSprite, (50, 50))

        self.clearText()

        highscore = Highscore()

        x = 350
        y = 100

        for score in highscore.getScores():
            self.addText(score[0], x, y, size = 30)
            self.addText(str(score[1]), x + 200, y, size = 30)
            # for each score increment the y by 30 px
            y += 30
        self.addText("Press F1 to restart the game! :)", x, y + 60, size = 30)
        
        super(HighscoreScene, self).render()
Beispiel #7
0
    def render(self):
        self.getGame().screen.blit(self.__highscoreSprite, (50, 50))

        self.clearText()

        highscore = Highscore()

        x = 350
        y = 100
        for score in highscore.getScores():
            self.addText(score[0], x, y, size=30)
            self.addText(str(score[1]), x + 200, y, size=30)

            y += 30

        self.addText("Pressionar F1 para começar um novo jogo",
                     x,
                     y + 60,
                     size=30)

        super(HighscoreScene, self).render()