comparison pytouhou/game/bullet.py @ 106:c7847bfed427

Minor refactoring
author Thibaut Girka <thib@sitedethib.com>
date Mon, 05 Sep 2011 22:40:46 +0200
parents ac2e5e1c2c3c
children 5d9052b9a4e8
comparison
equal deleted inserted replaced
105:572740acdb25 106:c7847bfed427
43 self.anim_idx = anim_idx 43 self.anim_idx = anim_idx
44 self.sprite_idx_offset = sprite_idx_offset 44 self.sprite_idx_offset = sprite_idx_offset
45 45
46 #TODO 46 #TODO
47 #if flags & (2|4|8): 47 #if flags & (2|4|8):
48 # index = {2: 11, 4: 12, 8: 13}[flags & (2|4|8)] 48 # if flags & 2: #TODO: Huh?!
49 # index = 14
50 # elif flags & 4:
51 # index = 15
52 # else:
53 # index = 19
49 # self._sprite = Sprite() 54 # self._sprite = Sprite()
50 # self._anmrunner = ANMRunner(self._game_state.resources.etama_anm_wrappers[0], 55 # self._anmrunner = ANMRunner(self._game_state.resource_loader.get_anm_wrapper(('etama3.anm',)), #TODO
51 # index, self._sprite, sprite_idx_offset) 56 # index, self._sprite, 0) #TODO: offset
57 # self._anmrunner.run_frame()
52 58
53 self.flags = flags 59 self.flags = flags
54 self.attributes = list(attributes) 60 self.attributes = list(attributes)
55 61
56 self.x, self.y = pos 62 self.x, self.y = pos