Commit 0c1f793c by BellCodeEditor

save project

parent 184d9509
Showing with 17 additions and 0 deletions
......@@ -27,6 +27,7 @@ for i in filelist:
nmd.append(i)
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
if event.type==locals.KEYDOWN:
......@@ -52,6 +53,22 @@ while True:
else:
pygame.mixer.music.pause()
cnm=stop_img
if x>120 and x<220 and y>350 and y<400:
num-=1
if num<0:
num=len(path+"\\"nmd)-1
sb=0
play_img=stop_img
pygame.mixer.music.load(path+"\\"+nmd[num])
pygame.mixer.music.play()
if x>120 and x<220 and y>350 and y<400:
num+=1
if num<0:
num=len(path+"\\"nmd)+1
sb=0
play_img=stop_img
pygame.mixer.music.load(path+"\\"+nmd[num])
pygame.mixer.music.play()
if pygame.mixer.music.get_busy()==False:
num+=1
if num==len(nmd):
......
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