Commit c84b8235 by BellCodeEditor

save project

parent e11c9e4b
Showing with 2 additions and 1 deletions
...@@ -65,7 +65,7 @@ while True: ...@@ -65,7 +65,7 @@ while True:
if index >= 5: if index >= 5:
index = 0 index = 0
# 将背景图画上去 # 将背景图画上去
bg_x-=1 bg_x-=8
if bg_x<=-1000: if bg_x<=-1000:
bg_x=0 bg_x=0
screen.blit(background,(bg_x,0)) screen.blit(background,(bg_x,0))
...@@ -73,6 +73,7 @@ while True: ...@@ -73,6 +73,7 @@ while True:
if road_x<=-1000: if road_x<=-1000:
road_x=0 road_x=0
screen.blit(road,(bg_x,500)) screen.blit(road,(bg_x,500))
screen.blit(wukong,(150,y))
if aa.rect.x <= 0-aa.rect.width: # 障碍物消失 if aa.rect.x <= 0-aa.rect.width: # 障碍物消失
# 创建障碍物对象 # 创建障碍物对象
aa=Block(bush,cacti,stone) aa=Block(bush,cacti,stone)
......
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