diff pytouhou/game/item.pyx @ 473:1c891c71cf22

Cythonize pytouhou.game.text.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 16 Sep 2013 18:42:12 +0200
parents 8038f1957b71
children 6be9c99a3a24
line wrap: on
line diff
--- a/pytouhou/game/item.pyx
+++ b/pytouhou/game/item.pyx
@@ -94,7 +94,7 @@ cdef class Item(Element):
                     player_state.power = 128
                 for level in (8, 16, 32, 48, 64, 96):
                     if old_power < level and player_state.power >= level:
-                        label = self._game.new_label((self.x, self.y), ':') # Actually a “PowerUp” character.
+                        label = self._game.new_label((self.x, self.y), b':') # Actually a “PowerUp” character.
                         color = 'blue'
                         label.set_color(color)
                         labeled = True