Mercurial > touhou
comparison pytouhou/game/orb.py @ 200:300661f2ae8a
Fix orbs' original position
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Mon, 31 Oct 2011 17:54:06 +0100 |
parents | 8ec34c56fed0 |
children | f3099ebf4f61 |
comparison
equal
deleted
inserted
replaced
199:8ec34c56fed0 | 200:300661f2ae8a |
---|---|
16 from pytouhou.game.sprite import Sprite | 16 from pytouhou.game.sprite import Sprite |
17 from pytouhou.vm.anmrunner import ANMRunner | 17 from pytouhou.vm.anmrunner import ANMRunner |
18 | 18 |
19 | 19 |
20 class Orb(object): | 20 class Orb(object): |
21 __slots__ = ('_sprite', '_anmrunner', 'offset_x', 'offset_y', 'player_state', | |
22 'fire') | |
23 | |
21 def __init__(self, anm_wrapper, index, player_state, fire_func): | 24 def __init__(self, anm_wrapper, index, player_state, fire_func): |
22 self._sprite = Sprite() | 25 self._sprite = Sprite() |
23 self._anmrunner = ANMRunner(anm_wrapper, index, self._sprite) | 26 self._anmrunner = ANMRunner(anm_wrapper, index, self._sprite) |
24 self._anmrunner.run_frame() | 27 self._anmrunner.run_frame() |
25 | 28 |