comparison pytouhou/ui/gamerenderer.pyx @ 274:f037bca24f2d

Partially implement lasers. “Launch animations”/“energy circles” are missing, aswell as collision and grazing.
author Thibaut Girka <thib@sitedethib.com>
date Sun, 05 Feb 2012 23:41:55 +0100
parents 80e73b8245a4
children 4838e9bab0f9
comparison
equal deleted inserted replaced
273:595b227886b1 274:f037bca24f2d
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.players, 87 game.players,
88 *(player.objects() for player in game.players))) 88 *(player.objects() for player in game.players)))
89 self.render_elements(chain(game.bullets, game.cancelled_bullets, game.items)) 89 self.render_elements(chain(game.bullets, game.lasers, game.cancelled_bullets, game.items))
90 #TODO: display item indicators 90 #TODO: display item indicators
91 glEnable(GL_FOG) 91 glEnable(GL_FOG)
92 92