Commit 2df1c16c by BellCodeEditor

save project

parent e820080b
Showing with 1 additions and 0 deletions
...@@ -100,6 +100,7 @@ while True: ...@@ -100,6 +100,7 @@ while True:
obstacle.kill() obstacle.kill()
if pygame.sprite.collide_rect(wukong,obstacle): if pygame.sprite.collide_rect(wukong,obstacle):
gameOver=pygame.image.load('gameover.png') gameOver=pygame.image.load('gameover.png')
screen.blit(gameOver,(400,200))
gameState=False gameState=False
# 刷新画面 # 刷新画面
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