Commit 874e1750 by BellCodeEditor

save project

parent a9042c19
Showing with 3 additions and 3 deletions
......@@ -58,8 +58,8 @@ while True:
position.append((x, y))
if x==apple_x and y==apple_y:
score+=5
apple_x=random.randint(0,22)*30
apple_y=random.randint(0,16)*30
apple_x=random.randint(0,21)*30
apple_y=random.randint(0,15)*30
else:
position.pop(0)
# 将背景图画上去
......@@ -76,7 +76,7 @@ while True:
info = "Score:"+str(score)
text = myfont.render(info,True,(0,255,0))
screen.blit(text,(500,10))
screen.blit(text,(450,10))
# 刷新画面
......
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