# HG changeset patch # User Emmanuel Gil Peyrot # Date 1324413374 -3600 # Node ID 31460b2ec530d5084553d91efe5a61b3fadc7e69 # Parent 5c5913b889bcb536624f94a6ec1caed55daf4107 Actually use offset of Sprite in spellcard’s effect, and place it correctly. diff --git a/pytouhou/game/game.py b/pytouhou/game/game.py --- a/pytouhou/game/game.py +++ b/pytouhou/game/game.py @@ -86,7 +86,8 @@ class Game(object): def enable_effect(self): - self.effect = Effect((0, 0), 0, self.effect_anm_wrapper) + self.effect = Effect((-32., -16.), 0, self.effect_anm_wrapper) #TODO: find why this offset is necessary. + self.effect._sprite.allow_dest_offset = True #TODO: should be the role of anm’s 25th instruction. Investigate! def disable_effect(self):