Commit 2cd9eb20 by BellCodeEditor

auto save

parent 9bd5d72a
Showing with 1 additions and 2 deletions
......@@ -10,13 +10,12 @@ right=pygame.image.load('right.png')#头 朝右
food=pygame.image.load('apple.png')#食物 苹果
body=pygame.image.load('body.png')#身体
#创建一个窗口
scree=pygame.display.set_mode((660,480))
screen=pygame.display.set_mode((660,480))
while True:
for event in pygame.event.get():
#print(event)
if event.type==locals.QUIT:
exit()
#将背景图画上去
scree.blit(background,(0,0))
#将贪吃蛇的头画上去
......
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