diff pytouhou/opengl/gamerenderer.pyx @ 199:8ec34c56fed0

Implement orbs.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 31 Oct 2011 09:38:57 -0700
parents 46793ccfedca
children 220c122f428c
line wrap: on
line diff
--- a/pytouhou/opengl/gamerenderer.pyx
+++ b/pytouhou/opengl/gamerenderer.pyx
@@ -152,6 +152,8 @@ cdef class GameRenderer:
             self.render_elements(game.enemies)
             self.render_elements(game.effects)
             self.render_elements(game.players)
+            for player in game.players:
+                self.render_elements(player.objects())
             self.render_elements(game.bullets)
             self.render_elements(game.cancelled_bullets)
             self.render_elements(game.players_bullets)