Commit 8b9aca6b by BellCodeEditor

save project

parent 812a1172
Showing with 8 additions and 4 deletions
...@@ -79,16 +79,20 @@ while True: ...@@ -79,16 +79,20 @@ while True:
newRest=newlogo.get_rect(center=(320,200)) newRest=newlogo.get_rect(center=(320,200))
pos=(newRest[0],newRest[1]) pos=(newRest[0],newRest[1])
if click % 2 == 0: if click % 2 == 0:
jd+=10 jd+=20
else: else:
pass pass
time=int(pygame.mixer.music.get_pos())//1000
timef=time//60
timem=time%60
# 绘制画面 # 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景 screen.blit(bg_img, (0, 0)) # 填充背景
screen.blit(play_button, (270, 330)) # 暂停按钮 screen.blit(play_button, (270, 330)) # 暂停按钮
screen.blit(newlogo, pos) # 中间logo图 screen.blit(newlogo, pos) # 中间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))
# 下一曲
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
print(str(timef)+":"+str(timem))
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