Commit 459b9477 by BellCodeEditor

save project

parent fdff4225
Showing with 5 additions and 0 deletions
......@@ -107,6 +107,11 @@ while True:
screen.blit(prop.image,(prop.rect.x,prop.rect.y))
if prop.rect.x<=prop.rect.width:
prop.kill()
if pygame.sprite.collide_rect(wukong,prop):
gameover = pygame.image.load('gameover.png')
screen.blit(gameover,(400,200))
gamesate = False
# 刷新画面
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