Commit c894f61f by BellCodeEditor

save project

parent 0ce965f2
Showing with 4 additions and 0 deletions
......@@ -2,6 +2,7 @@ import pygame
from pygame import locals
pygame.init()
# 初始化
c=0
screen=pygame.display.set_mode((660,480))
pygame.mixer.music.load('歌曲3.wav')
pygame.mixer.music.play()
......@@ -27,6 +28,9 @@ while True:
if event.key == locals.K_DOWN and volunm>0:
volunm-=0.1
pygame.mixer.music.set_volume(volunm)
if event.type=locals.MOUSEBUTTONDOWN:
c+=1
if pygame.mixer.music.get_busy()==False:
pygame.mixer.music.play()
......
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