Commit 00f5c9ae by BellCodeEditor

auto save

parent a79b5ad3
Showing with 7 additions and 4 deletions
......@@ -30,7 +30,7 @@ index = 0
y = 400
jumpState = "runing"
t = 30
x=0
# obstacle = random.choice([bush, stone, cacti])
#new_road=road.get_rect()
......@@ -60,6 +60,7 @@ while True:
if t <= 30:
y += t
t += 2
input(x)
else:
jumpState = "runing"
t =30
......@@ -91,7 +92,9 @@ while True:
screen.blit(wukong, (150, y))
screen.blit(obstacle.image,(obstacle.rect.x,obstacle.rect.y))
# 刷新画面
pygame.display.update()
FPS.tick(60)
\ No newline at end of file
FPS.tick(60)
x+=1
\ No newline at end of file
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