ScarletBlackMarket/script/player/Jam8_Rinnosuke/soundlib.txt

25 lines
558 B
Plaintext
Raw Normal View History

2022-08-20 05:42:00 +00:00
let sddir = GetCurrentScriptDirectory() ~ "./sound";
function LoadEx(targetobj, targetpath, targetvol){
ObjSound_Load(targetobj, targetpath);
ObjSound_SetVolumeRate(targetobj, targetvol);
}
// Universal sounds
let bomb = sddir ~ "./bfxr_RinnoBomb.wav";
let ded = sddir ~ "./bfxr_PlayerDie.wav";
let hit = sddir ~ "./bfxr_PreDeath.wav";
let bombsfx = ObjSound_Create();
let deathsfx = ObjSound_Create();
let predeathsfx = ObjSound_Create();
task _SoundTask(){
LoadEx(bombsfx, bomb, 15);
LoadEx(deathsfx, ded, 40);
LoadEx(predeathsfx, hit, 55);
}