comparison 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
comparison
equal deleted inserted replaced
383:0537af9125a7 384:690b5faaa0e6
152 label.set_color(color) 152 label.set_color(color)
153 153
154 self.removed = True 154 self.removed = True
155 155
156 156
157 @property
158 def objects(self):
159 if self.indicator:
160 return [self.indicator]
161 return [self]
162
163
157 def update(self): 164 def update(self):
158 if self.frame == 60: 165 if self.frame == 60:
159 self.speed_interpolator = Interpolator((0.,), 60, 166 self.speed_interpolator = Interpolator((0.,), 60,
160 (3.,), 180) 167 (3.,), 180)
161 168