Commit a9918a30 by BellCodeEditor

save project

parent a93b245f
Showing with 3 additions and 3 deletions
...@@ -42,7 +42,7 @@ hero = [pygame.image.load('hero1.png'), ...@@ -42,7 +42,7 @@ hero = [pygame.image.load('hero1.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')]
score_audio=pygame.mixer.Sound('score.was') score_audio=pygame.mixer.Sound('score.wav')
basic_font=pygame.font.Font('STKAITI.TTF',18) basic_font=pygame.font.Font('STKAITI.TTF',18)
score=0 score=0
index = 0 index = 0
...@@ -129,8 +129,8 @@ while True: ...@@ -129,8 +129,8 @@ while True:
score+=sprite.score score+=sprite.score
sprite.score=0 sprite.score=0
if score>old_score: if score>old_score:
score_audio.play() score_audio.play()
old_score=score old_score=score
scoreSurf=basic_font.render("store:"+str(score),True,(255,255,255)) scoreSurf=basic_font.render("store:"+str(score),True,(255,255,255))
screen.blit(scoreSurf,(880,20)) screen.blit(scoreSurf,(880,20))
......
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