Commit fc320076 by BellCodeEditor

save project

parent 6a4fd659
Showing with 3 additions and 1 deletions
......@@ -54,16 +54,17 @@ while True:
index += 1
if index==5:
index=0
rect.x -= 5
if rect.x <= 0-rect.width:
o=random.choice([stone,cacti,apple])
rect=o.get_rect()
rect.x=1000
rect.y=500-rect.height
# 将背景图画上去
screen.blit(o,(rect.x,rect.y))
screen.blit(background, (0, 0))
screen.blit(road, (0, 500))
screen.blit(mouhou, (150, y))
screen.blit(o,(rect.x,rect.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