Mercurial > touhou
comparison pytouhou/game/item.pyx @ 590:e15672733c93
Switch to Python 3.x instead of 2.7.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 30 Sep 2014 17:14:24 +0200 |
parents | e992927f07a8 |
children | 3c2f96f1d715 |
comparison
equal
deleted
inserted
replaced
589:0768122da817 | 590:e15672733c93 |
---|---|
155 self._game.change_bullets_into_star_items() | 155 self._game.change_bullets_into_star_items() |
156 | 156 |
157 if score > 0: | 157 if score > 0: |
158 player.score += score | 158 player.score += score |
159 if label is None: | 159 if label is None: |
160 label = self._game.new_label((self.x, self.y), str(score)) | 160 label = self._game.new_label((self.x, self.y), str(score).encode()) |
161 if color != 'white': | 161 if color != 'white': |
162 label.set_color(color) | 162 label.set_color(color) |
163 | 163 |
164 self.removed = True | 164 self.removed = True |
165 | 165 |