Commit 5e9b4e36 by BellCodeEditor

auto save

parent 4e6d577a
Showing with 3 additions and 2 deletions
......@@ -20,7 +20,7 @@ down = pygame.image.load('down.png') # 头 朝下
my_font = pygame.font.Font('neuropol.ttf',25)
apple_x,apple_y = 360,300
x, y = 240, 120
position = [(180, 90), (180, 120), (210, 120), (x-30, y-30)]
position = [(180, 90), (180, 120), (210, 120), (x, y)]
xx,yy = apple_x,apple_y
setheading = "right"
snake_head = right
......@@ -73,6 +73,6 @@ while True:
screen.blit(food, (xx,yy))
text = "fs:" + str(score)
MyScore = my_font.render(text,True,(0,0,0))
screen.blit(MyScore,(418,20))# 刷新画面
screen.blit(MyScore,(448,20))# 刷新画面
pygame.display.update()
FPSCLOCK.tick(7)
\ 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