arcade播放音效演示Sound Demo

"""
播放音效演示
"""
import arcade
import os

# 设置工作目录
file_path = os.path.dirname(os.path.abspath(__file__))
os.chdir(file_path)

arcade.open_window(300, 300, "arcade播放音效演示Sound Demo")
laser_sound = arcade.load_sound("sounds/laser1.wav") # 加载音效
arcade.play_sound(laser_sound)                       # 播放音效
arcade.run()                                         # 运行