Commit 8ad8f650 by BellCodeEditor

save project

parent 0af22f98
Showing with 6 additions and 2 deletions
...@@ -12,7 +12,7 @@ background = pygame.image.load('bg.png') ...@@ -12,7 +12,7 @@ background = pygame.image.load('bg.png')
right = pygame.image.load('right.png') right = pygame.image.load('right.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')
lift=pygame.image.load('lift.png') left=pygame.image.load('left.png')
up=pygame.image.load('up.png') up=pygame.image.load('up.png')
down=pygame.image.load('down.png') down=pygame.image.load('down.png')
right_a='right' right_a='right'
...@@ -40,8 +40,12 @@ while True: ...@@ -40,8 +40,12 @@ while True:
if right_a=='light': if right_a=='light':
x+=30 x+=30
if left_a=='left': if right_a=='left':
x-=30 x-=30
if right_a=='up':
y-=30
if right_a=='down':
y+=30
x+=30 x+=30
a_b.append((x,y)) a_b.append((x,y))
......
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