Commit e3ca05d2 by BellCodeEditor

save project

parent ea78cd65
Showing with 3 additions and 1 deletions
...@@ -73,11 +73,12 @@ while True: ...@@ -73,11 +73,12 @@ while True:
screen.blit(body, position[i]) screen.blit(body, position[i])
if x<0 or x>630 or y<0 or y>450: if x<0 or x>630 or y<0 or y>450:
exit() exit()
screen.blit(t,(0,0))
# 将果实画上去 # 将果实画上去
m=pygame.font.Font("neuropol.ttf",100) m=pygame.font.Font("neuropol.ttf",100)
i="sb"+str(s) i="sb"+str(s)
t=m.render(i,False,[100,255,100]) t=m.render(i,False,[100,255,100])
screen.blit(t,(0,0))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPSCLOCK.tick(16) FPSCLOCK.tick(16)
\ 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