Commit 852b255d by BellCodeEditor

save project

parent b8b73d67
Showing with 4 additions and 3 deletions
...@@ -82,13 +82,14 @@ while True: ...@@ -82,13 +82,14 @@ while True:
num += 1 num += 1
if num > len(music_list)-1: if num > len(music_list)-1:
num = 0 num = 0
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)
pos=(newRect[0],newRect[1]) newRect=new_logo.get_rect(center=(320,200))
angle+=1 pos=(newRect[0],newRect[1])
angle+=1
# +++++++++++++++++++++++++++++++++++++ # +++++++++++++++++++++++++++++++++++++
# 绘制画面 # 绘制画面
......
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