Commit 5eb8fa3a by BellCodeEditor

auto save

parent 1b1ed85d
Showing with 6 additions and 6 deletions
......@@ -11,11 +11,11 @@ road = pygame.image.load('road.png') # 路
stone = pygame.image.load('stone.png') # 石头
cacti = pygame.image.load('cacti.png') # 仙人掌
apple = pygame.image.load('bush.png') # 灌木丛
hero = [pygame.image.load('stone.png'),
pygame.image.load('stone.png'),
pygame.image.load('stone.png'),
pygame.image.load('stone.png'),
pygame.image.load('stone.png')]
hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero2.png'),
pygame.image.load('hero1.png'),
pygame.image.load('hero2.png'),
pygame.image.load('hero1.png')]
pygame.display.set_caption("一只猴的回家路")
index = 0
heroLength = len(hero)
......@@ -189,7 +189,7 @@ while True:
if bg_x <= -6000:
bg_x = 0
road_x -= 8
if road_x <= -1000:
if road_x <= -2000:
road_x = 0
if ob_res.x < 0-ob_res.width:
ob = random.choice([stone,cacti ,apple])
......
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