Commit 9600925e by BellCodeEditor

save project

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