die sound

This commit is contained in:
Killian Marty 2024-01-04 17:34:17 +01:00
parent fa66ff2c32
commit 5d59d45155
3 changed files with 3 additions and 0 deletions

Binary file not shown.

View file

@ -47,6 +47,8 @@ class Player
}
});
dieSound.play();
net.died(this.id,killerId);
}
}

View file

@ -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");