Commit 22b5c200 by BellCodeEditor

save project

parent bd49b10c
Showing with 12 additions and 0 deletions
......@@ -27,3 +27,14 @@ while True:
# 刷新画面
pygame.display.update()
FPS.tick(60)
score = 0
old_score = score
black_list = pygame.spoite.group()
else:
if (sprite.rect.x+spriterect.width) < wukong.rect.x:
score +=sprite.score
sprite.score = 0
scoesurf = basic_font.render("分数"+str(score),true,(255,255,255))
scoesurf = (basicscoesurf(880,20))
\ 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