Commit 24fb4575 by BellCodeEditor

auto save

parent 130b0862
Showing with 3 additions and 1 deletions
......@@ -24,7 +24,7 @@ volume = 0.2
pygame.mixer.music.set_volume(volume) # 初始播放音量
click = 0
play_button = stop_img
angle += 1
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -81,6 +81,8 @@ while True:
num += 1
if num > len(music_list)-1:
num = 0
pos = (newRect[0],newRect[1])
angle += 1
pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play()
......
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