Commit e94846d4 by BellCodeEditor

save project

parent 85adeb77
Showing with 6 additions and 4 deletions
...@@ -20,6 +20,7 @@ pygame.mixer.music.set_volume(volume) # 初始播放音量 ...@@ -20,6 +20,7 @@ pygame.mixer.music.set_volume(volume) # 初始播放音量
click = 0 click = 0
play_button = stop_img play_button = stop_img
num=0 num=0
angle=0
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
...@@ -71,9 +72,10 @@ while True: ...@@ -71,9 +72,10 @@ while True:
click += 1 click += 1
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
pygame.mixer.music.load("歌曲4.ogg")
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)) newRect = new_logo.get_rect(center=(320,200))
pos = (newRect[0],newRect[1]) pos = (newRect[0],newRect[1])
if play_button == stop_img: if play_button == stop_img:
...@@ -88,4 +90,4 @@ while True: ...@@ -88,4 +90,4 @@ while True:
# 下一曲 # 下一曲
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FRS.tick(60) FPS.tick(60)
\ No newline at end of file \ No newline at end of file
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