Commit 76ee92d4 by BellCodeEditor

auto save

parent 20363a77
Showing with 6 additions and 2 deletions
......@@ -83,11 +83,15 @@ while True:
num = 0
pygame.mixer.music.load(path + "\\" + music_list[num])
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)) #获得矩形的旋转宽度和高度
pos=(newrect[0],newrect[1])
angle += 1
#绘制画面
screen.blit(bg_img, (0, 0))
screen.blit(play_button, (270, 330))
screen.blit(logo_img, (170, 60))
screen.blit(new_logo, pos) #中间logo图
screen.blit(last_img, (120, 350))
screen.blit(next_img, (420, 350))
......
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