You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
829 B
41 lines
829 B
import pygame
|
|
|
|
#滑动音效
|
|
def slide_sound():
|
|
pygame.mixer.Sound("./sound/slide_sound.mp3").play()
|
|
|
|
#提示音效
|
|
def tips_sound():
|
|
pygame.mixer.Sound("./sound/tips_sound.mp3").play()
|
|
|
|
#背景音乐
|
|
def background_sound():
|
|
pygame.mixer.Sound("./sound/background_sound.mp3").play()
|
|
|
|
#背景音乐
|
|
def ai_background_sound():
|
|
pygame.mixer.Sound("./sound/ai_background_sound.mp3").play()
|
|
|
|
#返回音乐
|
|
def return_sound():
|
|
pygame.mixer.Sound("./sound/return_sound.mp3").play()
|
|
|
|
#成功音乐
|
|
def win_sound():
|
|
pygame.mixer.Sound("./sound/win_sound.mp3").play()
|
|
|
|
#失败音乐
|
|
def fail_sound():
|
|
pygame.mixer.Sound("./sound/fail_sound.mp3").play()
|
|
|
|
#回放音乐
|
|
def reshow_sound():
|
|
pygame.mixer.Sound("./sound/reshow_sound.mp3").play()
|
|
|
|
#停止吧
|
|
def stop_sound():
|
|
pygame.mixer.stop()
|
|
|
|
|
|
|