Mercurial > touhou
diff pytouhou/game/bullet.pyx @ 430:c9433188ffdb
Remove AnmWrapper, since ANMs are lists of entries now.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 03 Aug 2013 15:49:04 +0200 |
parents | efae61ad6efe |
children | 1222341ea22c |
line wrap: on
line diff
--- a/pytouhou/game/bullet.pyx +++ b/pytouhou/game/bullet.pyx @@ -79,7 +79,7 @@ cdef class Bullet(object): launch_mult = bullet_type.launch_anim_penalties[2] self.dx, self.dy = self.dx * launch_mult, self.dy * launch_mult self.sprite = Sprite() - self.anmrunner = ANMRunner(bullet_type.anm_wrapper, + self.anmrunner = ANMRunner(bullet_type.anm, index, self.sprite, bullet_type.launch_anim_offsets[sprite_idx_offset]) self.anmrunner.run_frame() @@ -117,7 +117,7 @@ cdef class Bullet(object): self.sprite.angle = self.angle - pi else: self.sprite.angle = self.angle - self.anmrunner = ANMRunner(bt.anm_wrapper, bt.anim_index, + self.anmrunner = ANMRunner(bt.anm, bt.anim_index, self.sprite, self.sprite_idx_offset) self.anmrunner.run_frame() @@ -146,7 +146,7 @@ cdef class Bullet(object): self.sprite.angle = self.angle - pi else: self.sprite.angle = self.angle - self.anmrunner = ANMRunner(bt.anm_wrapper, bt.cancel_anim_index, + self.anmrunner = ANMRunner(bt.anm, bt.cancel_anim_index, self.sprite, bt.launch_anim_offsets[self.sprite_idx_offset]) self.anmrunner.run_frame() self.dx, self.dy = self.dx / 2., self.dy / 2.