Skip to content

Commit b40dd7e

Browse files
committed
add : ban and kill sound effects added.
1 parent 3c00c20 commit b40dd7e

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,6 @@ The game continues until a faction achieves its win condition; for the Residents
9292
## References
9393
Icons made by <a href="https://www.flaticon.com/authors/vectors-market" title="Vectors Market">Vectors Market</a> and <a href="https://www.flaticon.com/authors/pixel-perfect" title="Pixel perfect">Pixel perfect</a> from <a href="https://www.flaticon.com/" title="Flaticon"> www.flaticon.com</a>.
9494

95+
Sounds from <a href="https://www.soundjay.com">Soundjay</a>.
96+
9597
+ [https://en.wikipedia.org/wiki/Mafia_(party_game)](https://en.wikipedia.org/wiki/Mafia_(party_game))

static/js/main.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,17 @@ function start() {
2222
}
2323
}
2424
}
25+
26+
function delay (URL, delay_time) {
27+
setTimeout( function() { window.location = URL }, delay_time );
28+
}
29+
30+
function kill_sound_play(){
31+
var kill_sound = document.getElementById("kill");
32+
kill_sound.play();
33+
}
34+
35+
function ban_sound_play(){
36+
var ban_sound = document.getElementById("ban");
37+
ban_sound.play();
38+
}

static/voices/ban.mp3

278 KB
Binary file not shown.

static/voices/kill.mp3

208 KB
Binary file not shown.

0 commit comments

Comments
 (0)