Mercurial > touhou
diff pytouhou/game/bullet.py @ 97:ac2e5e1c2c3c
Refactor \o/
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sun, 04 Sep 2011 23:50:00 +0200 |
parents | ca571697ec83 |
children | c7847bfed427 |
line wrap: on
line diff
--- a/pytouhou/game/bullet.py +++ b/pytouhou/game/bullet.py @@ -108,8 +108,9 @@ class Bullet(object): if not self._sprite or self._sprite._removed: self._launched = True self._sprite = Sprite() - self._anmrunner = ANMRunner(self._game_state.resources.etama_anm_wrappers[0], #TODO - self.anim_idx, self._sprite, self.sprite_idx_offset) + anm_wrapper = self._game_state.resource_loader.get_anm_wrapper(('etama3.anm',)) #TODO + self._anmrunner = ANMRunner(anm_wrapper, self.anim_idx, + self._sprite, self.sprite_idx_offset) self._anmrunner.run_frame() self._sprite.update(angle_base=self.angle)