Commit aaf4416c by BellCodeEditor

save project

parent 557fda13
Showing with 6 additions and 5 deletions

26.3 KB | W: | H:

14.5 KB | W: | H:

bush.png
bush.png
bush.png
bush.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -57,15 +57,16 @@ while True:
hero_list+=1
if hero_list>len(hero)-1:
hero_list=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()
rect.x=1000
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
FPS.tick(50)
\ 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