Commit 9c61d861 by BellCodeEditor

save project

parent 4e8ac9dc
Showing with 12 additions and 1 deletions
......@@ -60,6 +60,9 @@ while True:
num = 0
pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play()
music1 = pygame.mixer.Sound(path + "\\"+ music_list[num])
music1_length = int(music1.get_length())
print(music1_length)
play_button = stop_img
if click % 2 == 0:
click += 2
......@@ -72,6 +75,9 @@ while True:
num = len(music_list) - 1
pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play()
music1 = pygame.mixer.Sound(path + "\\"+ music_list[num])
music1_length = int(music1.get_length())
print(music1_length)
play_button = stop_img
if click % 2 == 0:
click += 2
......@@ -84,6 +90,10 @@ while True:
num = 0
pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play()
music1 = pygame.mixer.Sound(path + "\\"+ music_list[num])
music1_length = int(music1.get_length())
print(music1_length)
new_logo = pygame.transform.rotate(logo_img,angle)
new_rect = new_logo.get_rect(center = (320,200))
......@@ -94,7 +104,8 @@ while True:
play_time_sec = int(play_time/1000)
play_m=play_time_sec // 60
play_s= play_time_sec % 60
print("min: " + str(play_m) + "Sec: " + str(play_s))
# 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景
screen.blit(play_button, (270, 330)) # 暂停按钮
......
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