Commit d7f3ea8b by BellCodeEditor

save project

parent 61401be2
Showing with 2 additions and 3 deletions
...@@ -81,10 +81,9 @@ while True: ...@@ -81,10 +81,9 @@ while True:
num=random.randint(0,50) num=random.randint(0,50)
if num>20: if num>20:
aa=Block(bush,cacti,stone) aa=Block(bush,cacti,stone)
block_list block_list.add(aa)
for aa in block_list:
aa.rect.x -= 8 aa.rect.x -= 8
screen.blit(aa.image, (aa.rect.x, aa.rect.y)) screen.blit(aa.image, (aa.rect.x, aa.rect.y))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
......
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