πŸ“’Sounds and Shaders

Who wants to listen to rickroll?

Sounds

const sound = new Audio("./sa.mp3");
sound.currentTime = 0;//start time (do not have to enter)
sound.play().catch(()=>{});
sound.volume = 1;
sound.loop = true;

Add

autocomponentsound(
true,//add or remove
sound,//example: const sound = new Audio("./sa.mp3");
player1.name,//Enter the name of 1 obje
player2.name,//Enter the name of 2 obje
area//you choose how much area you want to have, manually 1.5 is set (you don't have to enter it)
)

Remove

Warning: the sound may be loud

Shaders

Last updated