Commit 325dcae1 by BellCodeEditor

save project

parent cb1bcc4b
Showing with 6 additions and 3 deletions
...@@ -20,7 +20,8 @@ filelist=os.listdir(path) ...@@ -20,7 +20,8 @@ filelist=os.listdir(path)
for i in filelist: 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
...@@ -76,7 +77,8 @@ while True: ...@@ -76,7 +77,8 @@ while True:
print(num) print(num)
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,7 +93,8 @@ while True: ...@@ -91,7 +93,8 @@ 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