Mercurial > touhou
diff pytouhou/ui/gamerenderer.pyx @ 315:e935ed8dc5e6
Add out-of-screen item indicators.
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Fri, 23 Mar 2012 16:27:07 +0100 |
parents | 52d791bb7c32 |
children | 13201d90bb22 |
line wrap: on
line diff
--- a/pytouhou/ui/gamerenderer.pyx +++ b/pytouhou/ui/gamerenderer.pyx @@ -88,7 +88,9 @@ cdef class GameRenderer(Renderer): game.players, game.msg_sprites(), *(player.objects() for player in game.players))) - self.render_elements(chain(game.bullets, game.lasers, game.cancelled_bullets, game.items)) + self.render_elements(chain(game.bullets, game.lasers, + game.cancelled_bullets, game.items, + (item.indicator for item in game.items if item.indicator))) #TODO: display item indicators glEnable(GL_FOG)