summaryrefslogtreecommitdiff
path: root/cameltris/screens/in_game.py
diff options
context:
space:
mode:
Diffstat (limited to 'cameltris/screens/in_game.py')
-rw-r--r--cameltris/screens/in_game.py8
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))