Commit bdf15458 by BellCodeEditor

save project

parent d6ea3f92
Showing with 4 additions and 1 deletions
......@@ -52,6 +52,8 @@ while True:
y -= 30
else:
y += 30
if x<0 or x>630 or y<0 or y>450:
exit()
position.append((x, y))
if x==apple_x and y==apple_y:
n1=random.randint(0,21)
......@@ -74,7 +76,7 @@ while True:
myfont=pygame.font.Font("neuropol.ttf",18)
info="score:"+str(score)
txt=myfont.render(info,True,(0,0,0))
screen.blit(txt,(540,100))
screen.blit(txt,(540,10))
# 刷新画面
pygame.display.update()
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