Commit 1a565673 by BellCodeEditor

save project

parent 928b64f3
Showing with 3 additions and 4 deletions
......@@ -58,6 +58,9 @@ while True:
a+=1
if a>len(hero)-1:
a=0
screen.blit(background, (0, 0))
screen.blit(road, (0, 500))
screen.blit(wukong, (150, y))
if rect.x <= 0-rect.width:
b=random.choice([stone,cacti,bush])
rect=b.get_rect()
......@@ -65,9 +68,6 @@ while True:
rect.y=500-rect.height
rect.x-=8
screen.blit(b,(rect.x,rect.y))
screen.blit(background, (0, 0))
screen.blit(road, (0, 500))
screen.blit(wukong, (150, y))
# 刷新画面
pygame.display.update()
FPS.tick(60)
\ 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