Commit c4171a7f by BellCodeEditor

auto save

parent 837593a8
Showing with 2 additions and 2 deletions
......@@ -10,7 +10,7 @@ pygame.display.set_caption("悟空快跑")
# 载入图片
background = pygame.image.load('bg.png') # 背景
background = pygame.image.load("bg.png") # 背景
road = pygame.image.load('road.png') # 路
stone = pygame.image.load('stone.png') # 石头
cacti = pygame.image.load('cacti.png') # 仙人掌
......@@ -67,7 +67,7 @@ while True:
screen.blit(background, (0, 0))
screen.blit(road, (0, 500))
screen.blit(wukong, (150, y))
#stone_x -=5
if rect.x<=0-rect.width:
obstacle=random.choice(zaw)
rect=obstacle.get_rect()
......
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