Mercurial > touhou
comparison pytouhou/game/item.py @ 151:5cf927cbd9c5
Merge GameState into Game. TODO: Merge PlayerState into Player
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Tue, 04 Oct 2011 23:32:02 +0200 |
parents | 4f46717390aa |
children | 86807b8a63bd |
comparison
equal
deleted
inserted
replaced
150:4f46717390aa | 151:5cf927cbd9c5 |
---|---|
15 | 15 |
16 from math import cos, sin, atan2, pi | 16 from math import cos, sin, atan2, pi |
17 | 17 |
18 | 18 |
19 class Item(object): | 19 class Item(object): |
20 def __init__(self, pos, item_type, angle, speed, player, game_state): | 20 def __init__(self, pos, item_type, angle, speed, player, game): |
21 self._game_state = game_state | 21 self._game = game |
22 self._sprite = item_type.sprite | 22 self._sprite = item_type.sprite |
23 self._removed = False | 23 self._removed = False |
24 self._item_type = item_type | 24 self._item_type = item_type |
25 | 25 |
26 self.hitbox_half_size = item_type.hitbox_size / 2. | 26 self.hitbox_half_size = item_type.hitbox_size / 2. |