Commit e60dc0b9 by BellCodeEditor

auto save

parent 2ffb9ec5
Showing with 15 additions and 2 deletions
...@@ -11,10 +11,23 @@ stop_img = pygame.image.load('stop.png') # 暂停按钮 ...@@ -11,10 +11,23 @@ stop_img = pygame.image.load('stop.png') # 暂停按钮
last_img = pygame.image.load('last.png') # 上一曲按钮 last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮 next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 中间logo logo_img = pygame.image.load('logo.png') # 中间logo
#载入音乐
#定义一个变量记录鼠标点击的次数(click)
#初始化暂停按钮play_button
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
???? ????#判断事件类型是不是QUIT
#判断是否按下鼠标
#鼠标点击次数+1
#音乐是否正在播放(False)
#播放音乐
# 绘制画面 # 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景 screen.blit(bg_img, (0, 0)) # 填充背景
...@@ -23,4 +36,4 @@ while True: ...@@ -23,4 +36,4 @@ while True:
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()
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