Commit 602bf2f4 by BellCodeEditor

save project

parent 2c05ef3e
Showing with 2 additions and 2 deletions
......@@ -16,7 +16,7 @@ body = pygame.image.load('body.png') # 身体
left = pygame.image.load('left.png') # 头 朝左
up = pygame.image.load('up.png') # 头 朝上
down = pygame.image.load('down.png')
a=pygame.font.Font('msyh.ttc',50) # 头 朝下
a=pygame.font.Font('msyh.ttc',18) # 头 朝下
x, y = 240, 120
position = [(180, 90), (180, 120), (210, 120), (x, y)]
......@@ -68,7 +68,7 @@ while True:
screen.blit(body, position[i])
# 将果实画上去
screen.blit(food, (a_x, a_y))
i=''+str(story)
i='分数:'+str(story)
b=a.render(i,True,(100,100,100))
# 刷新画面
screen.blit(b,(540,10))
......
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