骑砍战团MOD开发(2)-音乐和声音

一.背景音乐(module_music.py)

     骑砍中的背景音乐是一个循环播放的音乐盒子music_box,通过module_music.py加载音乐资源,资源格式支持ogg,mp3.存放目录Music/.

     添加首页音乐资源mount_and_blade_title_screen:

("mount_and_blade_title_screen", "snbqt-zyyn.mp3", mtf_sit_main_title|mtf_start_immediately, 0),
进入游戏首次加载的音乐

     音乐的切换通过head_operation.py进行,不同文化和地域的背景音乐不同:

play_track               =  601  # (play_track, <track_id>, [options]),
                                 # Plays specified music track. Possible options: 0 = finish current then play this, 1 = fade out current and start this, 2 = stop current abruptly and start this
play_cue_track           =  602  # (play_cue_track, <track_id>),
                                 # Plays 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

霸王奉先

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值