Commit e77a697d by BellCodeEditor

save project

parent 0d929f8c
Showing with 22 additions and 4 deletions
......@@ -64,7 +64,9 @@ while True:
click += 2
else:
click += 1
music1=pygame.mixer.sound(path+"\\"+music[num])
music_length=music1.get_length()
music_length=int(music_length)
if x > 120 and x < 220 and y > 350 and y < 400:
num -= 1
if num < 0:
......@@ -76,7 +78,9 @@ while True:
click += 2
else:
click += 1
music1=pygame.mixer.sound(path+"\\"+music[num])
music_length=music1.get_length()
music_length=int(music_length)
if pygame.mixer.music.get_busy() == False:
num += 1
if num > len(music_list)-1:
......@@ -87,7 +91,17 @@ while True:
play_time=int(play_time/1000)
p_z=p//60
p_y=p%60
p_a=str(p_z)+":"+str(p_y)
if p_y<10:
p_y="0"+str(p_y)
info=str(p_z)+":"+str(p_y)
p_m=p//60
p_s=p%60
if p_s<10:
p_s="0"+str(p_s)
info2=str(p_m)+":"+str(p_s)
music1=pygame.mixer.sound(path+"\\"+music[num])
music_length=music1.get_length()
music_length=int(music_length)
new_logo = pygame.transform.rotate(logo_img, angle)
newRect=new_logo.get_rect(center=(320,200))
pos=(newRect[0],newRect[1])
......@@ -98,6 +112,9 @@ while True:
screen.blit(new_logo,pos)
screen.blit(last_img, (120, 350))
screen.blit(next_img, (420, 350))
scoreSurf=basic_font.render(info,True,(255,255,255))
screen.blit(scoreSurf,(120,440))
scoreSurf=basic_font.render("/"+info2,True,(0,0,0))
screen.blit(scoreSurf2,(170,440))
pygame.display.update()
play_time
\ No newline at end of file
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