Commit ca5072a1 by BellCodeEditor

auto save

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