Commit 325dcae1 by BellCodeEditor

save project

parent cb1bcc4b
Showing with 3 additions and 0 deletions
...@@ -21,6 +21,7 @@ for i in filelist: ...@@ -21,6 +21,7 @@ for i in filelist:
if i[-4:]==".ogg"or i[-4:]==".wav": if i[-4:]==".ogg"or i[-4:]==".wav":
music_list.append(i) music_list.append(i)
num =-1 num =-1
angle=0
volume = 0.2 volume = 0.2
pygame.mixer.music.set_volume(volume) pygame.mixer.music.set_volume(volume)
click=0 click=0
...@@ -77,6 +78,7 @@ while True: ...@@ -77,6 +78,7 @@ while True:
pygame.mixer.music.load(path+"\\"+music_list[num]) pygame.mixer.music.load(path+"\\"+music_list[num])
pygame.mixer.music.play() pygame.mixer.music.play()
new_logo = pygame.transform.rotate(logo_img, angle) new_logo = pygame.transform.rotate(logo_img, angle)
newRect = new_logo.get_rect(center=(320, 200)) newRect = new_logo.get_rect(center=(320, 200))
pos = (newRect[0], newRect[1]) pos = (newRect[0], newRect[1])
...@@ -91,6 +93,7 @@ while True: ...@@ -91,6 +93,7 @@ while True:
screen.blit(next_img, (420, 350)) screen.blit(next_img, (420, 350))
pygame.display.update() pygame.display.update()
FPS.tick(60)
......
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