Mercurial > touhou
diff pytouhou/game/effect.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 | bdcf2077e368 |
children | ac2891afb0bb |
line wrap: on
line diff
--- a/pytouhou/game/effect.py +++ b/pytouhou/game/effect.py @@ -26,6 +26,7 @@ class Effect(object): self.anmrunner = ANMRunner(anm_wrapper, index, self.sprite) self.anmrunner.run_frame() self.removed = False + self.objects = [self] self.x, self.y = pos @@ -48,6 +49,7 @@ class Particle(object): self.sprite = Sprite() self.sprite.anm, self.sprite.texcoords = anm_wrapper.get_sprite(index) self.removed = False + self.objects = [self] self.x, self.y = start_pos self.frame = 0