Add v1 heartbeat noise
This commit is contained in:
parent
62f96562f1
commit
bd7fe599e8
@ -12,6 +12,7 @@ var constants = {
|
||||
bg_color: "#242424",
|
||||
text_color: "#ffffff",
|
||||
canvas_border: "rgb(63, 63, 63)",
|
||||
canvas_bg: "darkslategray",
|
||||
loading_animation_color: "#ff4136"
|
||||
},
|
||||
|
||||
|
@ -69,4 +69,7 @@ function heartbeat() {
|
||||
pressure = 100;
|
||||
}
|
||||
heartBeat = true;
|
||||
|
||||
// Play the heartbeat sound
|
||||
soundAssets.heartbeat.play();
|
||||
};
|
@ -18,7 +18,8 @@ let soundAssetMap = {
|
||||
"footstep3":"./assets/sounds/footsteps/footstep3.mp3",
|
||||
"footstep4":"./assets/sounds/footsteps/footstep4.mp3",
|
||||
"footstep5":"./assets/sounds/footsteps/footstep5.mp3",
|
||||
"footstep6":"./assets/sounds/footsteps/footstep6.mp3"
|
||||
"footstep6":"./assets/sounds/footsteps/footstep6.mp3",
|
||||
"heartbeat":"./assets/sounds/heartbeat.mp3"
|
||||
}
|
||||
|
||||
// All available sounds
|
||||
@ -29,7 +30,8 @@ let soundAssets = {
|
||||
footstep3: new SoundSnippet("footstep3", audioAssetType.sfx),
|
||||
footstep4: new SoundSnippet("footstep4", audioAssetType.sfx),
|
||||
footstep5: new SoundSnippet("footstep5", audioAssetType.sfx),
|
||||
footstep6: new SoundSnippet("footstep6", audioAssetType.sfx)
|
||||
footstep6: new SoundSnippet("footstep6", audioAssetType.sfx),
|
||||
heartbeat: new SoundSnippet("heartbeat", audioAssetType.sfx)
|
||||
}
|
||||
|
||||
/**
|
||||
|
BIN
docs/assets/sounds/heartbeat.mp3
Normal file
BIN
docs/assets/sounds/heartbeat.mp3
Normal file
Binary file not shown.
@ -14,7 +14,7 @@
|
||||
margin:auto;
|
||||
border: 5px solid var(--theme-webpage-canvas_border);
|
||||
border-radius: 10px;
|
||||
background-color: darkslategray;
|
||||
background-color: var(--theme-webpage-canvas_bg);
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="assets/css/main.css">
|
||||
|
Reference in New Issue
Block a user