comparison pytouhou/game/game.py @ 227:31460b2ec530

Actually use offset of Sprite in spellcard’s effect, and place it correctly.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 20 Dec 2011 21:36:14 +0100
parents 2d35565b5608
children 5afc75f71fed 9d4d52793eca
comparison
equal deleted inserted replaced
226:5c5913b889bc 227:31460b2ec530
84 elif self.difficulty > self.difficulty_max: 84 elif self.difficulty > self.difficulty_max:
85 self.difficulty = self.difficulty_max 85 self.difficulty = self.difficulty_max
86 86
87 87
88 def enable_effect(self): 88 def enable_effect(self):
89 self.effect = Effect((0, 0), 0, self.effect_anm_wrapper) 89 self.effect = Effect((-32., -16.), 0, self.effect_anm_wrapper) #TODO: find why this offset is necessary.
90 self.effect._sprite.allow_dest_offset = True #TODO: should be the role of anm’s 25th instruction. Investigate!
90 91
91 92
92 def disable_effect(self): 93 def disable_effect(self):
93 self.effect = None 94 self.effect = None
94 95