Commit 38dfae25 by BellCodeEditor

save project

parent 3e89fd1f
Showing with 1 additions and 0 deletions
......@@ -84,6 +84,7 @@ while True:
new_logo=pygame.transform.rotate(logo_img,angle)#让唱盘图片旋转
newRECT=new_logo.get_rect(center=(320,200))#获取图片移到中心位置后包含左上角坐标和图片大小的元组
pos=(newRECT[0],newRECT[1])#通过索引获取处于中心位置的唱片左上角坐标
if play_button==stop_img:#播放按钮为暂停造型时,即音乐正在播放时,angle+1
angle+=1#在循环外设置初值为0
# 绘制画面
......
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