Commit 00f5c9ae by BellCodeEditor

auto save

parent a79b5ad3
Showing with 5 additions and 1 deletions
...@@ -30,7 +30,7 @@ index = 0 ...@@ -30,7 +30,7 @@ index = 0
y = 400 y = 400
jumpState = "runing" jumpState = "runing"
t = 30 t = 30
x=0
# obstacle = random.choice([bush, stone, cacti]) # obstacle = random.choice([bush, stone, cacti])
#new_road=road.get_rect() #new_road=road.get_rect()
...@@ -60,6 +60,7 @@ while True: ...@@ -60,6 +60,7 @@ while True:
if t <= 30: if t <= 30:
y += t y += t
t += 2 t += 2
input(x)
else: else:
jumpState = "runing" jumpState = "runing"
t =30 t =30
...@@ -95,3 +96,5 @@ while True: ...@@ -95,3 +96,5 @@ while True:
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPS.tick(60) 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