From e2cdd2e4e5750e2cf046c772f26b2b64f9ab626c Mon Sep 17 00:00:00 2001 From: Jeffrey Hsu Date: Fri, 31 Jan 2025 20:07:57 +0800 Subject: [PATCH] change font of prompt text --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 11e936d..70ec0af 100644 --- a/main.py +++ b/main.py @@ -72,7 +72,7 @@ while running: pygame.draw.circle(screen, COLORS["player"], (player.x, player.y), 10) # 显示提示文字 - font = pygame.font.SysFont(None, 24) + font = pygame.font.SysFont('KaiTi', 24) text = font.render(f"Selected: {player.selected_block} (1-4切换方块)", True, (255, 255, 255)) screen.blit(text, (10, 10))