Commit e3015f5a by BellCodeEditor

save project

parent 5e2d5a02
Showing with 4 additions and 2 deletions
import pygame import pygame
from pygame from pygame import locals
import os
pygame.init() pygame.init()
screen = pygame.display.set_mode((640,480))
bg_img = pygame.image.load('background.png') # 背景图 bg_img = pygame.image.load('background.png') # 背景图
play_img = pygame.image.load('play.png') # 播放按钮 play_img = pygame.image.load('play.png') # 播放按钮
stop_img = pygame.image.load('stop.png') # 暂停按钮 stop_img = pygame.image.load('stop.png') # 暂停按钮
...@@ -51,7 +53,7 @@ while True: ...@@ -51,7 +53,7 @@ while True:
play_button = play_img play_button = play_img
pygame.mixer.music.pause() pygame.mixer.music.pause()
if x>120 and x<220 and y>350 and y<400: if x>120 and x<220 and y>350 and y<450:
num-=1 num-=1
if num<0: if num<0:
num = len(music_list)-1 num = len(music_list)-1
......
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