v1 #4
1 changed files with 1 additions and 0 deletions
|
@ -2,6 +2,7 @@ class Sound{
|
|||
constructor(url){
|
||||
this.sound = new Audio(url);
|
||||
this.sound.type = "audio/mp3";
|
||||
this.sound.volume = 0.2;
|
||||
}
|
||||
|
||||
play(){
|
||||
|
|
Loading…
Reference in a new issue