Commit 049631ed by BellCodeEditor

auto save

parent 597678e7
Showing with 1 additions and 3 deletions
......@@ -88,14 +88,13 @@ while True:
s=random.randint(0,100)
if s>40:
obstacle=Block(bush,cacti,stone)
blook_list.add(obstacle)
block_list.add(obstacle)
time=0
for i in block_list:
i.rect.x-=8
screen.blit(i.image,(i.rect.x,i.rect.y))
if i.rect.x<0-i.rect.width:
i.kill()
screen.blit(obstacle.image, (obstacle.rect.x, obstacle.rect.y))
# 刷新画面
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