Commit 58f9f2bb by BellCodeEditor

save project

parent 6943288d
Showing with 5 additions and 1 deletions
...@@ -89,7 +89,11 @@ while True: ...@@ -89,7 +89,11 @@ while True:
sprite.rect.x -= 8 sprite.rect.x -= 8
screen.blit(sprite.image,(sprite.rect.x,sprite.rect.y)) screen.blit(sprite.image,(sprite.rect.x,sprite.rect.y))
print(lrn(block)) print(lrn(block))
if sprite.rect.x <= 0-sprite.rect.width:
sprite.kill
if pygame.sprite.collide_rect(wukong, sprite):
gameoyer=pygame.image.oad('gameover.png')
screen.blit(gameover,(400,200))
screen.blit(aa.image, (aa.rect.x, aa.rect.y)) screen.blit(aa.image, (aa.rect.x, aa.rect.y))
# 刷新画面 # 刷新画面
......
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