Commit e4a439ba by BellCodeEditor

save project

parent 38f2b77d
Showing with 3 additions and 1 deletions
File added
...@@ -118,7 +118,7 @@ while True: ...@@ -118,7 +118,7 @@ while True:
screen.blit(gameover, (400, 200)) screen.blit(gameover, (400, 200))
gamestate = False gamestate = False
else: else:
if stone.rect.x + stone.rect.width < wukong.rect.x: if sprite.rect.x + sprite.rect.width < wukong.rect.x:
score +=sprite.score score +=sprite.score
sprite.score = 0 sprite.score = 0
scoreSurf = basic_font.render("分数:"+str(score),True,(255,0,0)) scoreSurf = basic_font.render("分数:"+str(score),True,(255,0,0))
......
{"第1名": 0, "第2名": 0, "第3名": 0}
\ 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