声音#
介绍#
声音方法通过与 V5 大脑连接的运行 VEXcode 的计算机播放内置的 VEXcode 声音。
以下是所有方法的列表:
操作——播放声音。
play_vexcode_sound— Play a built-in VEXcode sound through the computer.
行动#
play_vexcode_sound#
play_vexcode_sound plays a built-in VEXcode sound through the computer running VEXcode that the V5 Brain is connected to.
Usage:
play_vexcode_sound(sound)
范围 |
描述 |
|---|---|
|
The sound to play: |
# Play the game over sound
play_vexcode_sound("game over")