Commit 2271dd40 by BellCodeEditor

save project

parent 2941c632
Showing with 2 additions and 2 deletions
...@@ -80,7 +80,7 @@ while True: ...@@ -80,7 +80,7 @@ while True:
# aa=Block(bush,cacti,stone) # aa=Block(bush,cacti,stone)
# aa.rect.x -= 8 # aa.rect.x -= 8
time+=1: time+=1
if time >=60: if time >=60:
time=0 time=0
num=random.randint(0,50) num=random.randint(0,50)
...@@ -90,7 +90,7 @@ while True: ...@@ -90,7 +90,7 @@ while True:
screen.blit(aa.image, (aa.rect.x, aa.rect.y)) screen.blit(aa.image, (aa.rect.x, aa.rect.y))
for prop in block_list: for prop in block_list:
prop.rect.x-=8 prop.rect.x-=8
screen.blit(prop.imsge,(prop.rect.x,porp.rect.y)) screen.blit(prop.imge,(prop.rect.x,porp.rect.y))
if prop.rect.x<=0-prop.rect.width: if prop.rect.x<=0-prop.rect.width:
prop.kill() prop.kill()
# 刷新画面 # 刷新画面
......
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