Commit 027fe5df by BellCodeEditor

save project

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