Commit 70b9f11f by BellCodeEditor

save project

parent e384e6b3
Showing with 6 additions and 2 deletions
...@@ -63,6 +63,10 @@ while True: ...@@ -63,6 +63,10 @@ while True:
index += 1 index += 1
if index >= 5: if index >= 5:
index = 0 index = 0
if aa.rect.x<=0-aa.rect.width:
aa=Block(bush,cacti,stone)
aa.rect.x-=8
...@@ -84,4 +88,4 @@ while True: ...@@ -84,4 +88,4 @@ while True:
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(50)
\ No newline at end of file \ 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