Commit 078d4eed by BellCodeEditor

save project

parent c011af25
Showing with 3 additions and 3 deletions
......@@ -17,8 +17,8 @@ pygame.mixer.music.load("歌曲3.wav") #加入音乐
volume = 0.2
pygame.mixer.music.set_volume(volume) #初始播放音乐
click = 0
play_button = stop_img
click = 0
play_button = stop_img
while True:
for event in pygame.event.get():
......@@ -36,7 +36,7 @@ while True:
if volume <0:
volume= 0
pygame.mixer.music.set_volume(volume)
if event.tybe == locals.MOUSEBUTTONDOWN:
if event.type == locals.MOUSEBUTTONDOWN:
click += 1
if click % 2 == 0:
play_button = stop_img
......
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