Commit 18f758ac by BellCodeEditor

save project

parent 3c9c464f
Showing with 6 additions and 0 deletions
...@@ -90,6 +90,11 @@ while True: ...@@ -90,6 +90,11 @@ while True:
screen.blit(aa.image, (aa.rect.x, aa.rect.y)) screen.blit(aa.image, (aa.rect.x, aa.rect.y))
if sprite.rect.x <=0-sprite.rect.width:
sprite.kill()
if pygame.sprite.collide_rect(wukong.sprite):
gameover = pygame.image.load('gameover.png')
screen.blit(gameover,(400,200))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPS.tick(60) 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