Commit 68c104ac by BellCodeEditor

save project

parent e4623547
Showing with 8 additions and 1 deletions
......@@ -26,6 +26,7 @@ click = 0
play_button = stop_img
angle=0
clock=pygame.time.Clock()
my_font=pygame.font.Font("neuropol.ttf",18)
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -83,14 +84,20 @@ while True:
if num > len(music_list)-1:
num = 0
pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play()
play_time=pygame.mixer.music.get_pos()
play_time=play_time//1000
play_m=play_time//60
play_s=play_time%60
info=str(play_m)+":"+str(play_s)
new_logo=pygame.transform.rotate(logo_img,angle)
new_Rect=new_logo.get_rect(center=(320,200))
pos=(new_Rect[0],new_Rect[1])
if play_button == stop_img :
angle+=1
img
# 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景
screen.blit(play_button, (270, 330)) # 暂停按钮
......
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