Commit a2b5a6d6 by BellCodeEditor

auto save

parent c4cbe097
Showing with 4 additions and 3 deletions
......@@ -61,9 +61,9 @@ while True:
apple_x = random.randint(1,22)*30-30
apple_y = random.randint(1,16)*30-30
fenshu+= 10
else:
position.pop(0)
fenshu+= 10
# position.pop(0)
# 将背景图画上去
screen.blit(background, (0, 0))
# 将贪吃蛇的头画上去
......@@ -77,6 +77,6 @@ while True:
# 刷新画面
info = "IQ:"+str(fenshu)
text = my_font.render(info,False,(127,127,127))
screen.blit(text,(0,0))
screen.blit(text,(10,0))
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