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()
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()
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)
def render(self): from engine.game_env import Game Game.get_surface().blit(self.surf, self.rect)
def render(self): from engine.game_env import Game Game.get_surface().fill(self.bg)