comparison pytouhou/games/eosd.py @ 528:7c3c90468996

Inherit music players from a base class.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 18 Dec 2013 22:36:23 +0100
parents 577c3a88fb67
children bcff39c920ab
comparison
equal deleted inserted replaced
527:db28538cd399 528:7c3c90468996
280 if timeout >= 5: 280 if timeout >= 5:
281 timeout_label.set_color('purple') 281 timeout_label.set_color('purple')
282 else: 282 else:
283 timeout_label.set_color('red') 283 timeout_label.set_color('red')
284 if (boss.timeout - boss.frame) % 60 == 0 and boss.timeout != 0: 284 if (boss.timeout - boss.frame) % 60 == 0 and boss.timeout != 0:
285 self.game.sfx_player.play('timeout.wav', volume=1.) 285 self.game.sfx_player.set_volume('timeout.wav', 1.)
286 self.game.sfx_player.play('timeout.wav')
286 timeout_label.set_text('%02d' % (timeout if timeout >= 0 else 0)) 287 timeout_label.set_text('%02d' % (timeout if timeout >= 0 else 0))
287 timeout_label.changed = True 288 timeout_label.changed = True
288 289
289 290
290 291