Commit 7cd83968 by BellCodeEditor

save project

parent 05e8ad32
Showing with 9 additions and 1 deletions
...@@ -27,6 +27,7 @@ pygame.mixer.music.set_volume(volume) # 初始播放音量 ...@@ -27,6 +27,7 @@ pygame.mixer.music.set_volume(volume) # 初始播放音量
click = 0 click = 0
play_button = stop_img play_button = stop_img
a=-1 a=-1
x=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:
...@@ -78,11 +79,18 @@ while True: ...@@ -78,11 +79,18 @@ while True:
a=0 a=0
pygame.mixer.music.load(path+'\\'+p[a]) pygame.mixer.music.load(path+'\\'+p[a])
pygame.mixer.music.play() pygame.mixer.music.play()
m=pygame.transform.rotate(logo_img,x)
j=m.get_rect(center=(320,200))
o=(j[0],j[1])
if play_button == stop_img:
x+=1
# 绘制画面, # 填充背景 # 绘制画面, # 填充背景
screen.blit(bg_img,(0, 0)) screen.blit(bg_img,(0, 0))
screen.blit(stop_img , (270, 330)) # 暂停按钮 screen.blit(stop_img , (270, 330)) # 暂停按钮
screen.blit(play_button,(270,330)) screen.blit(play_button,(270,330))
screen.blit(logo_img, (170, 60)) # 中间logo图 screen.blit(m,o) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲 screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲 screen.blit(next_img, (420, 350)) # 下一曲
# 刷新画面 # 刷新画面
......
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