Commit 7714f539 by BellCodeEditor

save project

parent bd5b28d5
apple.png

2.05 KB

bg.png

22.5 KB

body.png

1.4 KB

......@@ -59,11 +59,12 @@ while True:
#贪吃蛇吃到苹果
if x==apple_x and y==apple_y:
num1=random.randint(0,22)
num2=random.randint(0,16)
num1=random.randint(1,22)
num2=random.randint(1,16)
apple_x=num1*30-30
apple_x=num2*30-30
else:
position.pop(0)
# 将背景图画上去
screen.blit(background, (0, 0))
......
down.png

2.01 KB

left.png

2.07 KB

File added
right.png

2.05 KB

up.png

2.05 KB

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