Mercurial > touhou
comparison pytouhou/game/enemy.py @ 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 | e0e284fcb288 |
children | ac2891afb0bb |
comparison
equal
deleted
inserted
replaced
383:0537af9125a7 | 384:690b5faaa0e6 |
---|---|
83 self.screen_box = None | 83 self.screen_box = None |
84 | 84 |
85 self.aux_anm = 8 * [None] | 85 self.aux_anm = 8 * [None] |
86 | 86 |
87 | 87 |
88 @property | |
88 def objects(self): | 89 def objects(self): |
89 return [anm for anm in self.aux_anm if anm] | 90 return [self] + [anm for anm in self.aux_anm if anm] |
90 | 91 |
91 | 92 |
92 def play_sound(self, index): | 93 def play_sound(self, index): |
93 name = { | 94 name = { |
94 5: 'power0', | 95 5: 'power0', |