Commit 6a64e77f by BellCodeEditor

auto save

parent 9b09a176
Showing with 2191 additions and 2 deletions
......@@ -14,13 +14,20 @@ logo_img = pygame.image.load('logo.png') # 中间logo
volume = 0.2
pygame.mixer.music.set_volume(volume)
start = stop_img
click = 0
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
if event.type==locals.KEYDOWN:
if event.type==locals.K_UP:
volume+=0.1
if volume>1:
volume=0
if event.type==locals.K_DOWN:
volume-=0.1
if volume<0:
volume=0
# 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景
......@@ -30,3 +37,2185 @@ while True:
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