Commit ffa39eb4 by BellCodeEditor

save project

parent cca112cc
Showing with 2 additions and 1 deletions
......@@ -25,7 +25,7 @@ position = [(180, 90), (180, 120), (210, 120), (x, y)]
setheading = "right"
snake_head = right
score = 0
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -60,6 +60,7 @@ while True:
num2 = random.randint(1,16)
apple_x = num1*30-30
apple_y = num2*30-30
score = score + 10
else:
position.pop(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