Commit ed7cad59 by BellCodeEditor

save project

parent 9d2eeb09
Showing with 5 additions and 0 deletions
......@@ -112,6 +112,10 @@ while True:
gameover = pygame.image.load('gameover.png')
screen.blit(gameover,(400,200))
gamestate = False
else :
if(sprite.rect.x+sprite.rect.width) <wukong.rect.x:
score = score + sprite.score
sprite.score = 0
# 刷新画面
pygame.display.update()
FPS.tick(150)
\ 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