Commit cdcd6a2e by BellCodeEditor

save project

parent d50dc95f
Showing with 2 additions and 2 deletions
......@@ -6,7 +6,7 @@ pygame.init()
# 创建一个窗口
screen = pygame.display.set_mode((660, 480))
Clock=pygame.clock.tick()
clock=pygame.time.Clock()
# 背景
background = pygame.image.load('bg.png')
right = pygame.image.load('right.png')
......@@ -32,6 +32,6 @@ while True:
screen.blit(food, (360, 300))
# 刷新画面
pygame.display.update()
Clock.tick(60)
clock.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