Commit 24be6a27 by BellCodeEditor

save project

parent 2742489a
Showing with 1 additions and 1 deletions
...@@ -31,6 +31,7 @@ index = 0 ...@@ -31,6 +31,7 @@ index = 0
y = 400 y = 400
jumpState = "runing" jumpState = "runing"
t = 30 t = 30
road_x=0
aa=Block(bush,cacti,stone) aa=Block(bush,cacti,stone)
while True: while True:
...@@ -42,7 +43,6 @@ while True: ...@@ -42,7 +43,6 @@ while True:
if jumpState == "runing": if jumpState == "runing":
if event.key == locals.K_SPACE: if event.key == locals.K_SPACE:
jumpState = "up" jumpState = "up"
if jumpState == "up": # 起跳状态 if jumpState == "up": # 起跳状态
if t > 0: if t > 0:
y -= t y -= t
......
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