Commit 739b5e00 by BellCodeEditor

auto save

parent e3c54d90
Showing with 3 additions and 3 deletions
......@@ -28,7 +28,7 @@ background = pygame.image.load("bg.png") # 背景
road = pygame.image.load('road.png') # 路
stone = pygame.image.load('stone.png') # 石头
cacti = pygame.image.load('cacti.png') # 仙人掌
apple = pygame.image.load('bush.png') # 灌木丛
bush = pygame.image.load('bush.png') # 灌木丛
hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero2.png'),
pygame.image.load('hero3.png'),
......@@ -39,8 +39,8 @@ y=400
t=30 #优化跳跃幅度
stone_x =1000
jumpState="running";
zaw=[stone,cacti,apple]
obstacle = random.choice([stone,cacti,apple])
zaw=[stone,cacti,bush]
obstacle = random.choice([stone,cacti,bush])
rect= obstacle.get_rect() #获取图片的坐标和长宽属性
rect.x=1000
rect.y=500-rect.height
......
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