Commit cd65e987 by BellCodeEditor

auto save

parent 2742489a
Showing with 4 additions and 3 deletions
...@@ -75,11 +75,12 @@ while True: ...@@ -75,11 +75,12 @@ while True:
screen.blit(wukong, (150, y)) # 悟空 screen.blit(wukong, (150, y)) # 悟空
if aa.rect.x <= 0-aa.rect.width: # 障碍物消失 if aa.rect.x <= 0-aa.rect.width: # 障碍物消失
# 创建障碍物对象 # 创建障碍物对z
aa=Block(bush,cacti,stone) aa=Block(bush,cacti,stone)
aa.rect=aa.image.get_aa.rect()
aa.rect.x=1000
aa.rect.y=500-aa.rect.height
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