Mercurial > touhou
comparison pytouhou/games/eosd/interface.py @ 783:ec1e06402a97
Replace SDL2_mixer with the kira crate
| author | Link Mauve <linkmauve@linkmauve.fr> |
|---|---|
| date | Fri, 21 Nov 2025 10:21:59 +0100 |
| parents | d1f0bb0b7a17 |
| children |
comparison
equal
deleted
inserted
replaced
| 782:a30ce01b9154 | 783:ec1e06402a97 |
|---|---|
| 148 if timeout >= 5: | 148 if timeout >= 5: |
| 149 timeout_label.set_color('purple') | 149 timeout_label.set_color('purple') |
| 150 else: | 150 else: |
| 151 timeout_label.set_color('red') | 151 timeout_label.set_color('red') |
| 152 if (boss.timeout - boss.frame) % 60 == 0 and boss.timeout != 0: | 152 if (boss.timeout - boss.frame) % 60 == 0 and boss.timeout != 0: |
| 153 self.game.sfx_player.set_volume('timeout.wav', 1.) | |
| 154 self.game.sfx_player.play('timeout.wav') | 153 self.game.sfx_player.play('timeout.wav') |
| 155 timeout_label.set_text('%02d' % (timeout if timeout >= 0 else 0)) | 154 timeout_label.set_text('%02d' % (timeout if timeout >= 0 else 0)) |
| 156 timeout_label.changed = True | 155 timeout_label.changed = True |
