Commit d7f3ea8b by BellCodeEditor

save project

parent 61401be2
Showing with 5 additions and 5 deletions
...@@ -81,11 +81,10 @@ while True: ...@@ -81,11 +81,10 @@ 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)
aa.rect.x -= 8 for aa in block_list:
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()
FPS.tick(60) 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