Commit 0e5c8436 by BellCodeEditor

save project

parent a735977e
Showing with 2 additions and 0 deletions
...@@ -14,6 +14,7 @@ up = pygame.image.load('up.png') ...@@ -14,6 +14,7 @@ up = pygame.image.load('up.png')
left = pygame.image.load('left.png') left = pygame.image.load('left.png')
food = pygame.image.load('apple.png') food = pygame.image.load('apple.png')
body = pygame.image.load('body.png') body = pygame.image.load('body.png')
zz = pygame.font.Font("neuropol.ttf",10)
dx=300 dx=300
dy=300 dy=300
x=240 x=240
...@@ -59,6 +60,7 @@ while True: ...@@ -59,6 +60,7 @@ while True:
dy=30*random(1,10)-30 dy=30*random(1,10)-30
for i in range(len(l)-1): for i in range(len(l)-1):
screen.blit(body,l[i]) screen.blit(body,l[i])
# 将果实画上去 # 将果实画上去
screen.blit(food, (dx, dy)) screen.blit(food, (dx, dy))
f.tick(4) f.tick(4)
......
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