Commit 0d349a73 by BellCodeEditor

save project

parent 647d1819
Showing with 4 additions and 0 deletions
...@@ -120,6 +120,10 @@ while True: ...@@ -120,6 +120,10 @@ while True:
gameover = pygame.image.load("gameover.png") gameover = pygame.image.load("gameover.png")
screen.blit(gameover, (400, 200)) screen.blit(gameover, (400, 200))
gamestate = False gamestate = False
if score >one:
record["第1名"]=score
record["第2名"]=one
record["第3名"]=two
else: else:
if (prop.rect.x+prop.rect.width)<wukong.rect.x: if (prop.rect.x+prop.rect.width)<wukong.rect.x:
score+=prop.score score+=prop.score
......
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