Commit 7144ffed by BellCodeEditor

auto save

parent ba3197a2
Showing with 3 additions and 2 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:
......@@ -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