comparison pytouhou/ui/gamerenderer.pyx @ 304:f3099ebf4f61

Update attribute names to reflect the actual interface.
author Thibaut Girka <thib@sitedethib.com>
date Tue, 13 Mar 2012 18:38:14 +0100
parents 94c636f8f863
children 52d791bb7c32
comparison
equal deleted inserted replaced
303:647bde10353d 304:f3099ebf4f61
78 78
79 if game is not None: 79 if game is not None:
80 self.setup_camera(0, 0, 1) 80 self.setup_camera(0, 0, 1)
81 81
82 glDisable(GL_FOG) 82 glDisable(GL_FOG)
83 self.render_elements(chain(*(enemy.objects() for enemy in game.enemies if enemy._visible))) 83 self.render_elements(chain(*(enemy.objects() for enemy in game.enemies if enemy.visible)))
84 self.render_elements(enemy for enemy in game.enemies if enemy._visible) 84 self.render_elements(enemy for enemy in game.enemies if enemy.visible)
85 self.render_elements(game.effects) 85 self.render_elements(game.effects)
86 self.render_elements(chain(game.players_bullets, 86 self.render_elements(chain(game.players_bullets,
87 game.lasers_sprites(), 87 game.lasers_sprites(),
88 game.players, 88 game.players,
89 game.msg_sprites(), 89 game.msg_sprites(),