Commit 7144ffed by BellCodeEditor

auto save

parent ba3197a2
Showing with 4 additions and 3 deletions
......@@ -77,7 +77,7 @@ while True:
num2=random.randint(1,16)
apple_x=num1*30-30
apple_y=num2*30-30
if len(roadblock_position) <10:
if len(roadblock_position) <6:
num3=random.randint(1,22)
num4=random.randint(1,16)
if num3==num1 and num2==num4 or num3==x and num4==y:
......@@ -86,7 +86,7 @@ while True:
roadblock_x=num3*30-30
roadblock_y=num4*30-30
roadblock_position.append((roadblock_x,roadblock_y))
score+=1
score+=1
else:
position.pop(0)
......@@ -111,5 +111,5 @@ while True:
# 刷新画面
pygame.display.update()
FPSCLOCK.tick(ticks)
FPSCLOCK.tick(5)
\ 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