Mercurial > touhou
comparison pytouhou/game/item.py @ 156:ebfd328e700c
Rename a few functions, move a few things around...
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Mon, 10 Oct 2011 18:34:36 +0200 |
parents | 37df8c618c2e |
children | e1bc8c4cbb1a |
comparison
equal
deleted
inserted
replaced
155:ed86bec43b93 | 156:ebfd328e700c |
---|---|
48 (0.,), 60) | 48 (0.,), 60) |
49 | 49 |
50 self._sprite.angle = angle | 50 self._sprite.angle = angle |
51 | 51 |
52 | 52 |
53 def collect(self, player): | |
54 player.state.score += self._item_type.score | |
55 self._removed = True | |
56 | |
57 | |
58 def update(self): | 53 def update(self): |
59 dx, dy = self.delta | 54 dx, dy = self.delta |
60 | 55 |
61 if self.frame == 60: | 56 if self.frame == 60: |
62 self.speed_interpolator = Interpolator((0.,), 60, | 57 self.speed_interpolator = Interpolator((0.,), 60, |