From 8382b7923ddc57b80409c01e212fe716c9d22357 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Mon, 15 Nov 2021 22:06:43 +0100 Subject: Change enum constants to uppercase Signed-off-by: Olivier Gayot --- cameltris/screens/in_game.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cameltris/screens/in_game.py') 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)) -- cgit v1.2.3