Commit a4bb4f58 by BellCodeEditor

save project

parent 79cf3503
Showing with 3 additions and 4 deletions
...@@ -40,9 +40,9 @@ hero = [pygame.image.load('hero1.png'), ...@@ -40,9 +40,9 @@ hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero2.png'), pygame.image.load('hero2.png'),
pygame.image.load('hero3.png'), pygame.image.load('hero3.png'),
pygame.image.load('hero4.png'), pygame.image.load('hero4.png'),
pygame.image.load('hero5.png')] pygame.image.load('hero5.png')]
my_font = pygame.font.Font("STKAITI.TTF",20) my_font = pygame.font.Font("STKAITI.TTF",20)
screen.blit(my_font.render("score:"+str(score),True,(123,213,231)) ,(880,20))
index = 0 index = 0
y = 400 y = 400
jumpState = "runing" jumpState = "runing"
...@@ -122,8 +122,7 @@ while True: ...@@ -122,8 +122,7 @@ while True:
sprite.score=0 sprite.score=0
print(score) print(score)
screen.blit(my_font.render("score:"+str(score),True,(123,213,231)) ,(880,20))
screen.blit(my_font.render("score:"+str(score),True,(123,213,231)) ,(880,20))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
......
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