Commit 604cddc6 by BellCodeEditor

auto save

parent 880a19d0
Showing with 6 additions and 2 deletions
...@@ -52,9 +52,11 @@ while True: ...@@ -52,9 +52,11 @@ while True:
if click % 2 == 0: if click % 2 == 0:
play_button = stop_img play_button = stop_img
pygame.mixer.music.unpause() pygame.mixer.music.unpause()
else: else:
play_button = play_img play_button = play_img
pygame.mixer.music.pause() pygame.mixer.music.pause()
if x > 420 and x < 520 and y > 350 and y < 400: if x > 420 and x < 520 and y > 350 and y < 400:
num += 1 num += 1
if num > len(music_list) - 1: if num > len(music_list) - 1:
...@@ -87,10 +89,11 @@ while True: ...@@ -87,10 +89,11 @@ while True:
pygame.mixer.music.play() pygame.mixer.music.play()
angle = angle + 1 angle = angle + 1
new_logo = pygame.transform.rotate(logo_img, angle) new_logo = pygame.transform.rotate(logo_img, angle)
new_logo0 = new_logo.get_rect(center = (200,120))
screen.blit(bg_img, (0, 0)) screen.blit(bg_img, (0, 0))
screen.blit(play_button, (270, 330)) screen.blit(play_button, (270, 330))
screen.blit(new_logo, (170, 60)) screen.blit(new_logo, (new_logo0))
screen.blit(last_img, (120, 350)) screen.blit(last_img, (120, 350))
screen.blit(next_img, (420, 350)) screen.blit(next_img, (420, 350))
pygame.display.update() pygame.display.update()
\ 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