diff pytouhou/game/item.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 94fdb6c782c1
children 723a3e67a223
line wrap: on
line diff
--- a/pytouhou/game/item.py
+++ b/pytouhou/game/item.py
@@ -154,6 +154,13 @@ class Item(object):
         self.removed = True
 
 
+    @property
+    def objects(self):
+        if self.indicator:
+            return [self.indicator]
+        return [self]
+
+
     def update(self):
         if self.frame == 60:
             self.speed_interpolator = Interpolator((0.,), 60,