Commit f9bae274 by BellCodeEditor

save project

parent 46042ff9
Showing with 2 additions and 1 deletions
......@@ -21,6 +21,7 @@ for i in filelist:
if i[-4:] == ".ogg" or i[-4:] == ".wav":
music_list.append(i)
num = -1
angle = 0
volume = 0.2
......@@ -85,7 +86,7 @@ while True:
pygame.mixer.music.play()
# +++++++++++++++++++++++++++++++++++++
# 旋转图片(注意:这里要搞一个新变量,存储旋转后的图片)
new_logo = pygame.transform.rotabe(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
......
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