Commit e071380e by BellCodeEditor

save project

parent 9d31438c
Showing with 5 additions and 1 deletions
......@@ -6,7 +6,7 @@ pygame.init()
# 创建一个窗口
screen = pygame.display.set_mode((660, 480))
FPSCLOCK
# 背景
background = pygame.image.load('bg.png')
right = pygame.image.load('right.png')
......@@ -28,5 +28,9 @@ while True:
screen.blit(body, (180, 90))
# 将果实画上去
screen.blit(food, (360, 300))
screen.blit(right,position[-1])
for i in range(len(position)-1)
screen.blit(body,position[i])
# 刷新画面
pygame.display.update()
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