Commit 07212063 by BellCodeEditor

auto save

parent 7312266f
Showing with 2 additions and 2 deletions
......@@ -41,7 +41,7 @@ hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero3.png'),
pygame.image.load('hero4.png'),
pygame.image.load('hero5.png')]
music1=pygame.mixer.music.load('score.wav')
music1=pygame.mixer.music.Sound('score.wav')
basic_font = pygame.font.Font('MSYH.TTF',18)
index = 0
y = 400
......@@ -99,7 +99,7 @@ while True:
screen.blit(road, (road_x, 500)) # 道路
screen.blit(wukong.image, (150, y)) # 悟空
if p
time += 1
if time >= 60: # 创建障碍物精灵
time = 0
......
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