From 780feeebd0977217d50c1f623c179dcd0aee2ab4 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Fri, 3 Dec 2021 16:45:49 +1300 Subject: [PATCH] save project --- my_Tetris.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/my_Tetris.py b/my_Tetris.py index 0c9b6ae..93eabae 100644 --- a/my_Tetris.py +++ b/my_Tetris.py @@ -15,6 +15,7 @@ clock = pygame.time.Clock() # pygame时钟,控制游戏速度(帧数) # 载入素材 background = pygame.image.load('bg.png') font = pygame.font.Font('STKAITI.TTF', 60) # 字体 +pygame.draw.rect(background, (255, 0, 0), (140, 20, 20, 20), width=0) while True: for event in pygame.event.get(): @@ -24,7 +25,8 @@ while True: # 将背景图画上去 screen.blit(background,(0,0)) # 得分 - font = pygame.font.Font('STKAITI.TTF', 60) + # 刷新画面 pygame.display.update() clock.tick(FPS) + \ No newline at end of file -- libgit2 0.25.0