Commit 8667f8ca by BellCodeEditor

save project

parent fff38f03
Showing with 3 additions and 1 deletions
......@@ -64,8 +64,10 @@ while True:
num2 = random.randint(0,15)
apple_x = num1*30
apple_y = num2*30
score += 10
else:
position.pop(0)
if x < 0 or x > 630 or y < 0 or y > 450:
exit()
screen.blit(background, (0, 0))
......@@ -80,7 +82,7 @@ while True:
# 绘制分数
info = "Score:"+str(score)
text = my_font.render(info,ture,(0,0,0))
text = my_font.render(info,True,(0,0,0))
screen.blit(text,(540,10))
# 刷新画面
pygame.display.update()
......
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