Commit e00c7fbb by BellCodeEditor

save project

parent 032a2d19
Showing with 12 additions and 1 deletions
...@@ -21,7 +21,7 @@ y = 400 ...@@ -21,7 +21,7 @@ y = 400
jumpState = "running" jumpState = "running"
t = 30 t = 30
stone_x=1000 stone_x=1000
road_x=0
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
...@@ -52,7 +52,18 @@ while True: ...@@ -52,7 +52,18 @@ while True:
if index >= 5: if index >= 5:
index = 0 index = 0
screen.blit(background,(0,0))
road_x -= 8
if road_x <= -1000:
road_x = 0
screen.blit(road,(road_x,500))
screen.blit(wukong,(150,y))
#if rect.x <= 0-rect.width:
# obstacle = random.choice([bush,stone,cacti])
# rect = obstacle,g
# rect.x = 1000
......
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