Commit 9fceb27a by BellCodeEditor

save project

parent 2e219d18
Showing with 8 additions and 0 deletions
......@@ -37,6 +37,10 @@ hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero3.png'),
pygame.image.load('hero4.png'),
pygame.image.load('hero5.png')]
score_audio = pygame..mixe.Sound('score.wav')
basic_font = pygame.font.Font('STKAITI.TTF', 18)
index = 0
y = 400
jumpState = "runing"
......@@ -115,6 +119,10 @@ while True:
gameover = pygame.image.load('gameover.png')
screen.blit(gameover,(400,200))
gamestate = False
else:
if (sprite.rect.x + sprite.rect.width) < wukong.rect.x:
score += sprite.score
sprite.score = 0
# print(len(block_list))
# 刷新画面
......
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