die sound
This commit is contained in:
parent
fa66ff2c32
commit
5d59d45155
3 changed files with 3 additions and 0 deletions
BIN
public_html/assets/sounds/die.mp3
Normal file
BIN
public_html/assets/sounds/die.mp3
Normal file
Binary file not shown.
|
@ -47,6 +47,8 @@ class Player
|
|||
}
|
||||
});
|
||||
|
||||
dieSound.play();
|
||||
|
||||
net.died(this.id,killerId);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@ let renderer = new Render("canvas");
|
|||
let LB = new LeaderBoard("canvas");
|
||||
let bulletSound = new Sound("./assets/sounds/shoot.mp3");
|
||||
let driftSound = new Sound("./assets/sounds/drift.mp3");
|
||||
let dieSound = new Sound("./assets/sounds/die.mp3");
|
||||
let notificationSound = new Sound("./assets/sounds/notification.mp3");
|
||||
let net = new Network("wss://ws.gta6.insat.fr:8080?name=" + getCookie("pseudo"));
|
||||
let inp = new Input("canvas");
|
||||
|
|
Loading…
Reference in a new issue