diff 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
line wrap: on
line diff
--- a/pytouhou/game/enemy.py
+++ b/pytouhou/game/enemy.py
@@ -85,8 +85,9 @@ class Enemy(object):
         self.aux_anm = 8 * [None]
 
 
+    @property
     def objects(self):
-        return [anm for anm in self.aux_anm if anm]
+        return [self] + [anm for anm in self.aux_anm if anm]
 
 
     def play_sound(self, index):