📢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

autocomponentsound(false,sound)
Warning: the sound may be loud

Shaders

onload.js
{
autoshaders:20000//One hour advances in a game every 20 minutes
autoshaders:0//if you do this, you will shut down the system
}
autoshaders(true,"player1")//add
autoshaders(false,"player1")//remove

Last updated