Commit bb280f1e by BellCodeEditor

auto save

parent 686c5f10
Showing with 24 additions and 2 deletions
......@@ -120,4 +120,26 @@ while True:
# 刷新画面
pygame.display.update()
FPS.tick(60)
\ No newline at end of file
FPS.tick(60)
scoreP
self.score=1
score=0
old_score=score
else:
if (sprite.rect.x+sprite.rect.width)<wukong.rect.x:
score+=sprite.score
sprite.score=0
scoreSurf=basic_font.render("分数"+str(score),Trie,(255,255,255))
screen.blit(scoreSurf,(880,20f))
\ 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