Commit 9d94b5cd by BellCodeEditor

save project

parent 73fab237
Showing with 7 additions and 1 deletions
......@@ -11,9 +11,10 @@ left = pygame.image.load('left.png')
down = pygame.image.load('down.png')
food = pygame.image.load('apple.png')
body = pygame.image.load('body.png')
neuropol=pygame.image.load()
sb=pygame.sb('neuropol.ttf',18)
x,y = 240,120
apple_x,apple_y=300,360
score=0
a12 = [(210,120),(210,120),(210,120),(x,y)]
asdwww = 'right'
add = right
......@@ -47,6 +48,7 @@ while True:
b=random.randint(0,15)
apple_x=30*a
apple_y=30*b
score+=10
else:
a12.pop(0)
screen.blit(background, (0, 0))
......@@ -55,5 +57,8 @@ while True:
for i in range(len(a12)-1):
screen.blit(body,a12[i])
screen.blit(food, (apple_x, apple_y))
info="Score"+str(score)
text=sb.render(info,True,(0,0,0))
screen.blit(text,(540,10))
pygame.display.update()
asd.tick(3)
\ No newline at end of file
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