Commit 8ddbc5d9 by BellCodeEditor

save project

parent fb9a9b35
File added
last.png

3.79 KB

[ver:v1.0]
[ar:]
[ti:]
[by:]
[00:00.000]Stronger (抖音热搜版) - 小猫多鱼
[00:01.454]Lyrics by:Gregory Kurstin/David Gamson/Greg Kurstin/Ali Tamposi/Alexandra Leah Tamposi/Elofsson Jorgen Kjell/H. Gamson David
[00:03.966]原唱:Kelly Clarkson
[00:04.628]You know the bed feels warmer
[00:08.110]Sleeping here alone
[00:12.920]You know I dream in color
[00:16.352]And do the things I want
[00:20.741]You think you got the best of me
[00:23.152]Think you've had the last laugh
[00:25.158]Bet you think
[00:25.688]That everything good is gone
[00:29.352]Think you left me broken down
[00:31.408]Think that I'd come running back
[00:33.548]Baby you don't know me
[00:34.826]Cause you're dead wrong
[00:37.682]What doesn't kill
[00:38.604]You makes you stronger
[00:40.410]Stand a little taller
[00:42.496]Doesn't mean
[00:43.089]I'm lonely when I'm alone
[00:46.011]What doesn't kill
[00:46.840]You makes a fighter
[00:48.711]Footsteps even lighter
[00:50.774]Doesn't mean
[00:51.518]I'm over 'cause you're gone
[00:54.275]What doesn't kill
[00:55.229]You makes you stronger stronger
[00:59.626]Just me myself and I
[01:02.747]What doesn't kill
[01:03.548]You makes you stronger
[01:05.234]Stand a little taller
[01:07.300]Doesn't mean
[01:08.033]I'm lonely when I'm alone
[01:12.732]You heard that I was starting
[01:15.498]Over with someone new
[01:21.012]They told you
[01:21.853]I was moving on over you
[01:28.820]You didn't think that
[01:30.098]I'd come back
[01:31.315]I'd come back swinging
[01:33.431]You try to break me
[01:34.858]But you see
[01:35.662]What doesn't kill you
[01:36.908]Makes you stronger
[01:38.366]Stand a little taller
[01:40.482]Doesn't mean
[01:41.286]I'm lonely when I'm alone
[01:43.962]What doesn't kill
[01:44.886]You makes a fighter
[01:46.608]Footsteps even lighter
[01:48.729]Doesn't mean I'm over
[01:50.408]'Cause you're gone
[01:52.143]What doesn't kill
[01:53.172]You makes you stronger stronger
[01:57.519]Just me myself and I
[02:00.624]What doesn't kill
[02:01.453]You makes you stronger
[02:03.138]Stand a little taller
[02:05.285]Doesn't mean
[02:06.037]I'm lonely when I'm alone
[02:10.897]Thanks to you
[02:11.913]I got a new thing started
[02:14.998]Thanks to you
[02:15.948]I'm not the broken hearted
[02:19.145]Thanks to you
[02:20.060]I'm finally thinking about me
[02:22.394]You know in the end the day
[02:24.922]You left was just my beginning
[02:29.858]In the end
logo.png

40.9 KB

File added
import pygame
from pygame import locals
mun=-1
pygame.init() # 初始化
# 创建窗口
screen = pygame.display.set_mode((640, 480))
# 载入图片、资源
bg_img = pygame.image.load('background.png') # 背景图
play_img = pygame.image.load('play.png') # 播放按钮
stop_img = pygame.image.load('stop.png') # 暂停按钮
last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮
# 载入音乐
volume = 0.2
pygame.mixer.music.set_volume(volume) # 初始播放音量
click = 0
play_button = stop_img
music_list=['y.mp3','ljj.mp3','m.mp3','1.mp3']
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
# 按键,控制声音大小
if event.type == locals.KEYDOWN:
if event.key == locals.K_UP:
volume += 0.1
if volume > 1:
volume = 1
pygame.mixer.music.set_volume(volume)
if event.key == locals.K_DOWN:
volume -= 0.1
if volume < 0:
volume = 0
pygame.mixer.music.set_volume(volume)
# 按下鼠标
if event.type == locals.MOUSEBUTTONDOWN:
if event.button==1:
x,y=event.pos
if x>270 and x<370 and y>350 and y<450:
# 次数增加
click += 1
if click % 2 == 0:
play_button = stop_img
pygame.mixer.music.unpause()
else:
play_button = play_img
pygame.mixer.music.pause()
if x>120 and x<220 and y>350 and y<400:
mun-=1
if mun<0:
mun=len(music_list)-1
pygame.mixer.music.load(music_list[mun])
pygame.mixer.music.play()
click=0
play_button=stop_img
if pygame.mixer.music.get_busy() == False:
mun+=1
if mun>len(music_list)-1:
mun=0
pygame.mixer.music.load(music_list[mun])
pygame.mixer.music.play()
# 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景
screen.blit(play_button, (270, 330)) # 暂停按钮
screen.blit(logo_img, (170, 60)) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲
# 刷新画面
pygame.display.update()
File added
next.png

3.87 KB

play.png

12.1 KB

stop.png

11.6 KB

File added
File added
File added
File added
File added
File added
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