Commit 7bcafd29 by BellCodeEditor

save project

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