Commit ec94306a by BellCodeEditor

save project

parent 1de593cc
Showing with 18 additions and 0 deletions
......@@ -75,3 +75,20 @@ while True:
screen.blit(next_img, (420, 350)) # 下一曲
# 刷新画面
pygame.display.update()
while True:
if rect.x<=0-rect.width:
obstacle = random.choice([bush,stone,cacti])
rect=obstacle.get_rect()
rect.x=1000
rect.y=500-rect.height
rect.x-=8
screen.blit(obstacle,(rect.x,rect.y))
\ 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