Commit cf11a265 by BellCodeEditor

save project

parent f7e0b3e5
Showing with 0 additions and 4 deletions
......@@ -64,7 +64,6 @@ while True:
num2 = random.randint(1,16) #纵排第几个格子
apple_x = 30*num1-30 #苹果的横坐标
apple_y = 30*num2-30 #苹果的纵坐标
score += 10
else:
position.pop(0)
# 将背景图画上去
......@@ -83,8 +82,6 @@ while True:
info = 'score'+str(score)
text = my_font.render(info,True,(0,0,0))
screen.blit(text,(540,10))
if x<0 or x>630 or y<0 or y>450:
exit()
# 刷新画面
pygame.display.update()
FPSCLOCK.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