コード例 #1
0
    def render(self):
        from engine.game_env import Game
        Game.get_surface().fill(self.bg)

        for br in self.bricks:
            br.render()

        self.ball.render()
        self.paddle.render()
コード例 #2
0
    def render(self):
        #Week 12 addition
        if self.game_over:
            self.bg = self.bg_won if self.game_won else self.bg_lost
        #Week 12 addition end

        from engine.game_env import Game
        Game.get_surface().fill(self.bg)

        for br in self.bricks:
            br.render()

        self.ball.render()
        self.paddle.render()
コード例 #3
0
 def render(self):
     if self.active:
         from engine.game_env import Game
         Brick.surf.fill(self.colour)
         Game.get_surface().blit(Brick.surf, self.rect)
コード例 #4
0
 def render(self):
     from engine.game_env import Game
     Game.get_surface().blit(self.surf, self.rect)
コード例 #5
0
 def render(self):
     from engine.game_env import Game
     Game.get_surface().fill(self.bg)