Commit 7bcafd29 by BellCodeEditor

save project

parent 43dccd10
Showing with 3 additions and 6 deletions
...@@ -49,6 +49,7 @@ while True: ...@@ -49,6 +49,7 @@ while True:
starjunp="run" starjunp="run"
t=30 t=30
wukong=hero[index] wukong=hero[index]
if starjunp=="runing":
index+=1 index+=1
if index>=5: if index>=5:
index=0 index=0
...@@ -66,8 +67,4 @@ while True: ...@@ -66,8 +67,4 @@ while True:
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPS.tick(60) FPS.tick(60)
while True: #
if rect.x<0-rect.width: \ No newline at end of file
obstacle=choice([bush,stone,cacti])
rect=obstacle.get_rect()
\ 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