Commit 9600925e by BellCodeEditor

save project

parent 668fe3b7
Showing with 6 additions and 7 deletions
......@@ -55,13 +55,12 @@ while True:
y += 30
position.append((x, y))
if x==apx and y==apy:
apx=r.randint(0,660)
c=30-apx
apx=apx+c
apy=r.randint(0,480)
d=30-apy
apy=apy+d
position.pop(0)
w=r.randint(1,22)
apx=30*w-30
e=r.randint(1,16)
apy=30*e-30
else:
position.pop(0)
# 将背景图画上去
screen.blit(background, (0, 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