Mercurial > touhou
comparison pytouhou/game/item.py @ 306:52d791bb7c32
Rename a few attributes/methods to make a little more sense.
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Tue, 13 Mar 2012 19:18:14 +0100 |
parents | f3099ebf4f61 |
children | e935ed8dc5e6 |
comparison
equal
deleted
inserted
replaced
305:5492472963b0 | 306:52d791bb7c32 |
---|---|
19 | 19 |
20 | 20 |
21 class Item(object): | 21 class Item(object): |
22 def __init__(self, start_pos, _type, item_type, game, angle=pi/2, player=None, end_pos=None): | 22 def __init__(self, start_pos, _type, item_type, game, angle=pi/2, player=None, end_pos=None): |
23 self._game = game | 23 self._game = game |
24 self._item_type = item_type | |
24 self.sprite = item_type.sprite | 25 self.sprite = item_type.sprite |
25 self.removed = False | 26 self.removed = False |
26 self._type = _type | 27 self._type = _type |
27 self._item_type = item_type | |
28 | 28 |
29 self.frame = 0 | 29 self.frame = 0 |
30 self.x, self.y = start_pos | 30 self.x, self.y = start_pos |
31 self.angle = angle | 31 self.angle = angle |
32 | 32 |