Mercurial > touhou
comparison pytouhou/ui/sdl/gamerenderer.py @ 551:0d7a16e0f834
Don’t display spellcard backgrounds either with the SDL backend.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 27 May 2014 17:41:52 +0200 |
parents | 56bca8ce4b68 |
children | e15672733c93 |
comparison
equal
deleted
inserted
replaced
550:f1be00de4b3f | 551:0d7a16e0f834 |
---|---|
56 x, y = game.interface.game_pos | 56 x, y = game.interface.game_pos |
57 self.window.win.render_set_viewport(Rect(x, y, game.width, game.height)) | 57 self.window.win.render_set_viewport(Rect(x, y, game.width, game.height)) |
58 self.window.win.render_set_clip_rect(Rect(x, -y, game.width, game.height)) | 58 self.window.win.render_set_clip_rect(Rect(x, -y, game.width, game.height)) |
59 | 59 |
60 if game is not None: | 60 if game is not None: |
61 if game.spellcard_effect is not None: | 61 self.window.win.render_clear() |
62 self.render_elements([game.spellcard_effect]) | |
63 else: | |
64 self.window.win.render_clear() | |
65 | 62 |
66 self.render_elements([enemy for enemy in game.enemies if enemy.visible]) | 63 self.render_elements([enemy for enemy in game.enemies if enemy.visible]) |
67 self.render_elements(game.effects) | 64 self.render_elements(game.effects) |
68 self.render_elements(chain(game.players_bullets, | 65 self.render_elements(chain(game.players_bullets, |
69 game.lasers_sprites(), | 66 game.lasers_sprites(), |