diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2021-11-15 22:06:43 +0100 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2021-11-15 22:06:43 +0100 |
commit | 8382b7923ddc57b80409c01e212fe716c9d22357 (patch) | |
tree | 58283992842d907a44ad56cb4b6dfc9b950bd9b8 /cameltris/screens | |
parent | f4049ca3bbd79c2c6568e519cde92836cc79769a (diff) |
Change enum constants to uppercase
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'cameltris/screens')
-rw-r--r-- | cameltris/screens/in_game.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cameltris/screens/in_game.py b/cameltris/screens/in_game.py index bed8643..840c0b9 100644 --- a/cameltris/screens/in_game.py +++ b/cameltris/screens/in_game.py @@ -47,14 +47,14 @@ class InGame(Screen): def refresh_right_pane_canvas(self) -> None: for player in self.players: - player.level_canvas.fill(Color.black.value) - player.score_canvas.fill(Color.black.value) + player.level_canvas.fill(Color.BLACK.value) + player.score_canvas.fill(Color.BLACK.value) if pygame.font: score_font = pygame.font.Font(None, 56) - player.score_canvas.blit(score_font.render(f"{player.score:08d}", True, Color.white.value), (0, 0)) - player.level_canvas.blit(score_font.render(f"{player.level:08d}", True, Color.white.value), (0, 0)) + player.score_canvas.blit(score_font.render(f"{player.score:08d}", True, Color.WHITE.value), (0, 0)) + player.level_canvas.blit(score_font.render(f"{player.level:08d}", True, Color.WHITE.value), (0, 0)) right_pane_canvas.blit(player.score_canvas, (2, 10)) right_pane_canvas.blit(player.level_canvas, (2, 70)) |