Commit 6deb4c8f by BellCodeEditor

auto save

parent 15c29c97
Showing with 5 additions and 3 deletions
......@@ -79,9 +79,12 @@ while True:
# 创建障碍物对象
aa=Block(bush,cacti,stone)
aa.rect.x -= 8
obstacle = Block(bush,cacti,stone)
block_list.add(obstacle)
for sprite in block_list:
sprite.rect.x -= 8
screen.blit(sprite.image,(sprite.rect.x,sprite.rect.y))
screen.blit(aa.image, (aa.rect.x, aa.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