Commit fd754f0e by BellCodeEditor

save project

parent eaa6a93f
Showing with 3 additions and 2 deletions
......@@ -23,6 +23,7 @@ x, y = 240, 120
position = [(180, 90), (180, 120), (210, 120), (x, y)]
apple_x = 90
appel_y = 30
score = 0
setheading = "right"
snake_head = right
......@@ -70,7 +71,7 @@ while True:
# 将背景图画上去
screen.blit(background, (0, 0))
w'w
# 将贪吃蛇的头画上去
screen.blit(snake_head, position[-1])
......@@ -83,7 +84,7 @@ while True:
#分数的显示
info = "Score:"+ str(score)
text = me_font.render('info,True,(255,255,255)')
text = my_font.render(info,True,(255,255,255))
screen.blit(text,(510,0))
# 刷新画面
......
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