Commit ce9814e8 by BellCodeEditor

auto save

parent 5ef22898
Showing with 10 additions and 27 deletions
import pygame # a,b=0,0
from pygame import locals # d=0
# for i in range(10,100,1):
pygame.init() # 初始化 # if(i%10!=i//10):
# 创建窗口 # d+=1
screen = pygame.display.set_mode((640, 480)) # print(d)
# 载入图片、资源 list=[",","一","二","三","四","五","六","七"]
bg_img = pygame.image.load('background.png') # 背景图 n=int(input())
play_img = pygame.image.load('play.png') # 播放按钮 print(list[n])
stop_img = pygame.image.load('stop.png') # 暂停按钮 \ No newline at end of file
last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 中间logo
pygame.mixer.music.load('歌曲4.ogg')
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
if pygame.mixer.music.get_busy()==Fa
# 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景
screen.blit(stop_img, (270, 330)) # 暂停按钮
screen.blit(logo_img, (170, 60)) # 中间logo图
screen.blit(last_img, (120, 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