Commit ca5072a1 by BellCodeEditor

auto save

parent f7d73aa3
Showing with 3 additions and 3 deletions
...@@ -28,6 +28,7 @@ rect.x = 1000 ...@@ -28,6 +28,7 @@ rect.x = 1000
rect.y = 500 - rect.height rect.y = 500 - rect.height
roadx=0 roadx=0
bg_x=0 bg_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:
...@@ -51,7 +52,6 @@ while True: ...@@ -51,7 +52,6 @@ while True:
else: else:
jumpState = "runing" jumpState = "runing"
t =30 t =30
# 悟空造型 # 悟空造型
wukong = hero[index] wukong = hero[index]
if jumpState == "runing": # 跑步状态下 if jumpState == "runing": # 跑步状态下
...@@ -69,8 +69,8 @@ while True: ...@@ -69,8 +69,8 @@ while True:
rect = obstacle.get_rect() rect = obstacle.get_rect()
rect.x = 1000 rect.x = 1000
rect.y = 500 - rect.height rect.y = 500 - rect.height
rect.x -= 8 rect.x -= 25
roadx-=8 roadx-=25
bg_x-=4 bg_x-=4
if roadx<=-1000: if roadx<=-1000:
roadx=0 roadx=0
......
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