Commit 90d66080 by BellCodeEditor

save project

parent 5c5e12a3
Showing with 3 additions and 1 deletions
...@@ -28,7 +28,7 @@ click = 0 ...@@ -28,7 +28,7 @@ click = 0
play_button = stop_img play_button = stop_img
while True: while True:
a=a+1
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
exit() exit()
...@@ -81,6 +81,8 @@ while True: ...@@ -81,6 +81,8 @@ while True:
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,a) new_logo=pygame.transform.rotate(logo_img,a)
if play_button==stop_img:
a+=1
newRect=new_logo.get_rect(center=(320,200)) newRect=new_logo.get_rect(center=(320,200))
pos=(newRect[0],newRect[1]) pos=(newRect[0],newRect[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