Commit 546a4587 by BellCodeEditor

save project

parent b32e23cf
Showing with 9 additions and 2 deletions
......@@ -21,11 +21,16 @@ angle = 0
for i in filelist:
if i[-4:] == ".wav" or i[-4:] == ".ogg":
music_list.append(i)
num = -1
angle= 0
volume = 0.2
pygame.mixer.music.set_volume(volume)
click = 0
play_button = stop_img
angle = 0
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -93,7 +98,7 @@ while True:
info = str(play_m) + ":" + str(play_s)
new_logo = pygame.transform.rotate(logo_img,angle)
newRect = new_logo.get_rect(center=(320200))
newRect = new_logo.get_rect(center=(320,200))
pos = (newRect[0],newRect[1])
if play_button == stop_img:
angle += 1
......@@ -102,6 +107,7 @@ while True:
screen.blit(new_logo,pos)
screen.blit(last_img, (120, 350))
screen.blit(next_img, (420, 350))
scoreSurf = basic_font.render(info,Ture,(255,2))
pygame.display.update()
FPS.tick(60)
\ 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