Mercurial > touhou
comparison pytouhou/game/text.py @ 345:2c4589370cc6
Display a boss remaining lives and timeout.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 05 Jul 2012 00:11:19 +0200 |
parents | 13201d90bb22 |
children | 862011266f2c |
comparison
equal
deleted
inserted
replaced
344:eab591728abf | 345:2c4589370cc6 |
---|---|
104 self.text = text | 104 self.text = text |
105 self.changed = True | 105 self.changed = True |
106 | 106 |
107 | 107 |
108 def set_color(self, color): | 108 def set_color(self, color): |
109 colors = {'white': (255, 255, 255), 'yellow': (255, 255, 0), 'blue': (192, 192, 255)} | 109 colors = {'white': (255, 255, 255), 'yellow': (255, 255, 0), 'blue': (192, 192, 255), 'darkblue': (160, 128, 255), 'purple': (224, 128, 255), 'red': (255, 64, 0)} |
110 self.ref_sprite.color = colors[color] | |
110 for glyph in self.glyphes: | 111 for glyph in self.glyphes: |
111 glyph.sprite.color = colors[color] | 112 glyph.sprite.color = colors[color] |
112 | 113 |
113 | 114 |
114 def timeout_update(self): | 115 def timeout_update(self): |