Commit 5c6b88ac by BellCodeEditor

save project

parent 641f1ed5
Showing with 2 additions and 2 deletions
...@@ -7,7 +7,7 @@ pygame.init() ...@@ -7,7 +7,7 @@ pygame.init()
# 创建一个窗口 # 创建一个窗口
screen = pygame.display.set_mode((660, 480)) screen = pygame.display.set_mode((660, 480))
TimE=pygame.time.Clock() TIME=pygame.time.Clock()
# 背景 # 背景
background = pygame.image.load('bg.png') background = pygame.image.load('bg.png')
...@@ -35,4 +35,4 @@ while True: ...@@ -35,4 +35,4 @@ while True:
screen.blit(food, (360, 300)) screen.blit(food, (360, 300))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
TimE.tick(3) TIME.tick(3)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment