comparison 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
comparison
equal deleted inserted replaced
96:54929d495654 97:ac2e5e1c2c3c
106 106
107 def update(self): 107 def update(self):
108 if not self._sprite or self._sprite._removed: 108 if not self._sprite or self._sprite._removed:
109 self._launched = True 109 self._launched = True
110 self._sprite = Sprite() 110 self._sprite = Sprite()
111 self._anmrunner = ANMRunner(self._game_state.resources.etama_anm_wrappers[0], #TODO 111 anm_wrapper = self._game_state.resource_loader.get_anm_wrapper(('etama3.anm',)) #TODO
112 self.anim_idx, self._sprite, self.sprite_idx_offset) 112 self._anmrunner = ANMRunner(anm_wrapper, self.anim_idx,
113 self._sprite, self.sprite_idx_offset)
113 114
114 self._anmrunner.run_frame() 115 self._anmrunner.run_frame()
115 self._sprite.update(angle_base=self.angle) 116 self._sprite.update(angle_base=self.angle)
116 117
117 #TODO: flags 118 #TODO: flags