Commit 7ea8f35e by BellCodeEditor

save project

parent 2271dd40
Showing with 8 additions and 7 deletions
......@@ -86,13 +86,13 @@ while True:
num=random.randint(0,50)
if num>20:
aa=Block(bush,cacti,stone)
block.list.add(aa)
screen.blit(aa.image, (aa.rect.x, aa.rect.y))
for prop in block_list:
prop.rect.x-=8
screen.blit(prop.imge,(prop.rect.x,porp.rect.y))
if prop.rect.x<=0-prop.rect.width:
prop.kill()
block_list.add(aa)
# screen.blit(aa.image, (aa.rect.x, aa.rect.y))
for prop in block_list:
prop.rect.x-=8
screen.blit(prop.image,(prop.rect.x,prop.rect.y))
if prop.rect.x<=0-prop.rect.width:
prop.kill()
# 刷新画面
pygame.display.update()
FPS.tick(60)
\ 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