Commit 027fe5df by BellCodeEditor

save project

parent 53ce46ad
Showing with 4 additions and 1 deletions
...@@ -96,7 +96,7 @@ while True: ...@@ -96,7 +96,7 @@ while True:
bg_x = 0 bg_x = 0
screen.blit(background, (bg_x, 0)) # 远景 screen.blit(background, (bg_x, 0)) # 远景
road_x -= 8 road_x -= speed
if road_x<=-1000: if road_x<=-1000:
road_x = 0 road_x = 0
screen.blit(road, (road_x, 500)) # 道路 screen.blit(road, (road_x, 500)) # 道路
...@@ -123,6 +123,9 @@ while True: ...@@ -123,6 +123,9 @@ while True:
if(sprite,rect.x+sprite.rect.width)<wukong.rect.x: if(sprite,rect.x+sprite.rect.width)<wukong.rect.x:
ssore+=sprite.score ssore+=sprite.score
sprite.score = 0 sprite.score = 0
if score>old_score:
score_audio.play()
old_score=score
......
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