Commit 20b54192 by BellCodeEditor

save project

parent 44a50b71
Showing with 3 additions and 3 deletions
...@@ -21,7 +21,7 @@ index = 0 ...@@ -21,7 +21,7 @@ index = 0
y = 400 y = 400
jumpState = "running" jumpState = "running"
t = 30 t = 30
bg _x = 0 bg_x = 0
road_x = 0 road_x = 0
obstacle = random.choice([bush,stone,cacti]) obstacle = random.choice([bush,stone,cacti])
rect = obstacle.get_rect() rect = obstacle.get_rect()
...@@ -61,9 +61,9 @@ while True: ...@@ -61,9 +61,9 @@ while True:
bg_x -= 1 bg_x -= 1
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))
road_x -= 8 road_x -= 8
if road_x <= -1000 if road_x <= -1000:
road_x = 0 road_x = 0
screen.bilt(road,road_x,500) screen.bilt(road,road_x,500)
screen.blit(wukong,(150,y)) screen.blit(wukong,(150,y))
......
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