Exemple #1
0
    def __init__(self, surf, fonts):
        ViewBase.__init__(self)
        self.surf = surf
        self.view_width = surf.get_width()
        self.view_height = surf.get_height()
        self.box_size = 10
        self.padding = (0, 0)
        self.go_font = fonts["game_over"]
        self.sc_font = fonts["score"]
        self.font_color = pygame.Color(200, 0, 0)
        self.score = None
        self.level = None

        self.end_msg = self.go_font.render("GAME OVER", True, self.font_color)
Exemple #2
0
 def set_size(self, cols, rows):
     ViewBase.set_size(self, cols, rows)
     self.calc_dimensions()