Mercurial > touhou
diff pytouhou/ui/gamerenderer.pyx @ 384:690b5faaa0e6
Make rendering of multiple-sprites elements work like single-sprites.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 02 Oct 2012 13:27:05 +0200 |
parents | 0537af9125a7 |
children |
line wrap: on
line diff
--- a/pytouhou/ui/gamerenderer.pyx +++ b/pytouhou/ui/gamerenderer.pyx @@ -122,16 +122,13 @@ cdef class GameRenderer(Renderer): self.game_shader.bind() self.game_shader.uniform_matrixf('mvp', self.game_mvp.get_c_data()) - self.render_elements(chain(*(enemy.objects() for enemy in game.enemies if enemy.visible))) self.render_elements(enemy for enemy in game.enemies if enemy.visible) self.render_elements(game.effects) self.render_elements(chain(game.players_bullets, game.lasers_sprites(), game.players, - game.msg_sprites(), - *(player.objects() for player in game.players))) + game.msg_sprites())) self.render_elements(chain(game.bullets, game.lasers, game.cancelled_bullets, game.items, - (item.indicator for item in game.items if item.indicator), - *(label.objects() for label in game.labels))) + game.labels))