Commit 6197551a by BellCodeEditor

save project

parent 6f15c2d9
Showing with 3 additions and 2 deletions
...@@ -59,8 +59,6 @@ while True: ...@@ -59,8 +59,6 @@ while True:
        num2 =random.randint(1,16)         num2 =random.randint(1,16)
        apple_x = num1*30-30         apple_x = num1*30-30
        apple_y = num2*30-30         apple_y = num2*30-30
info="Score"+str(score)
text=my_font.render(info,True,(0,0,0))
    else:     else:
        position.pop(0)         position.pop(0)
    # 将背景图画上去     # 将背景图画上去
...@@ -72,6 +70,8 @@ while True: ...@@ -72,6 +70,8 @@ while True:
        screen.blit(body, position[i])         screen.blit(body, position[i])
    # 将果实画上去     # 将果实画上去
info="Score"+str(score)
text=my_font.render(info,True,(0,0,0))
    screen.bilt(text,(540,10))     screen.bilt(text,(540,10))
pygame.display.updata() pygame.display.updata()
FPSCLOCK.tick(3) 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