Commit 0622ddd7 by BellCodeEditor

save project

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