Commit d0e05271 by BellCodeEditor

save project

parent cee73929
Showing with 3 additions and 3 deletions
...@@ -35,7 +35,7 @@ while True: ...@@ -35,7 +35,7 @@ while True:
if event.key==locals.K_SPACE and jumpState=='running': if event.key==locals.K_SPACE and jumpState=='running':
jumpState='up' jumpState='up'
if jumpState=='up': if jumpState=='up': #跳跃
if t>0: if t>0:
y-=t y-=t
t-=2 t-=2
...@@ -53,8 +53,8 @@ while True: ...@@ -53,8 +53,8 @@ while True:
index+=1 index+=1
if index==5: if index==5:
index=0 index=0
rect.x-=8 rect.x-=8 #移动(障)
if rect.x<0-rect.width: if rect.x<0-rect.width: #多次出现障
object=random.choice([stone,cacti,bush]) object=random.choice([stone,cacti,bush])
rect=object.get_rect() rect=object.get_rect()
rect.x=1000 rect.x=1000
......
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