Commit 602c28a4 by BellCodeEditor

save project

parent c075cadc
Showing with 25 additions and 0 deletions
impot pygame
from pygame impot locals
pygame.init()
screen=pygame.display.set_mode((640,480))
bg_img = pygame.image.load('background.png')
play_img = pygame.image.load('play.png')
next_img = pygame.image.load('next.png')
logo_img = pygame.image.load('logo.png')
pygame.mixer.music.load('歌曲4.ogg)
while True:
for event in pygame.event.get()
if event.type==locals.QUIT:
if event.type==locals.KEYDOWN:
if event.key==locals.K_w:
volume+=0.1
if volume<0:
volume=0
pygame.mixer.music.set_volume(volume)
if event.key==locals.K_w:
volume+=0.1
if volume<0:
volume=0
pygame.mixer.music.set_volume(volume)
if event.type==locals.MOUSEBUTTOND:
click+=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