Commit 3e6b2939 by BellCodeEditor

save project

parent d9b4c3e3
Showing with 5 additions and 5 deletions
......@@ -18,7 +18,7 @@ left = pygame.image.load('left.png') # 头 朝左
up = pygame.image.load('up.png') # 头 朝上
down = pygame.image.load('down.png') # 头 朝下
pygame.font.Font('SVGASYS.FON',10)
my_font=pygame.font.Font('SVGASYS.FON',18)
x, y = 240, 120
position = [(180, 90), (180, 120), (210, 120), (x, y)]
......@@ -74,11 +74,12 @@ while True:
for i in range(len(position)-1):
screen.blit(body, position[i])
info = 'Score:'+str(scroe)
text = my_fond.render(info,Ture,(127.5,127.5,127.5))
screen.blit(text,(540,10))
# 将果实画上去
screen.blit(food, (apple_x, apple_y))
info = 'Score'
# 刷新画面
pygame.display.update()
FPSCLOCK.tick(10)
\ 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