changeset 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 5c5913b889bc
children 8f4cd1c01d22
files pytouhou/game/game.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):