Commit 84169e26 by BellCodeEditor

auto save

parent 5fddf660
Showing with 0 additions and 13 deletions
...@@ -15,19 +15,6 @@ cacti = pygame.image.load('cacti.png') # 仙人掌 ...@@ -15,19 +15,6 @@ cacti = pygame.image.load('cacti.png') # 仙人掌
bush = 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'),pygame.image.load('hero4.png'),pygame.image.load('hero5.png')] hero = [pygame.image.load('hero1.png'),pygame.image.load('hero2.png'),pygame.image.load('hero3.png'),pygame.image.load('hero4.png'),pygame.image.load('hero5.png')]
if jumpstate=="run":
index += 1
if index == 5:
index = 0
screen.blit(wukong.image, (150,y))
if jumpstate=="up": #跳跃状态
if t>=0:
y-=t
wukong.rect.y = y
t-=2
screen.blit(wukong.image, (150,y))
else:
music=pygame.mixer.sound("")
class Block(pygame.sprite.Sprite): class Block(pygame.sprite.Sprite):
def __init__(self,image1,image2,image3): def __init__(self,image1,image2,image3):
super().__init__() super().__init__()
......
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