Merge pull request #14 from rsninja722/heartbeat-sound

Add v1 heartbeat noise
This commit is contained in:
Evan Pratten 2020-04-18 21:00:36 -04:00 committed by GitHub
commit 7b6b3bf0c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 3 deletions

View File

@ -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"
},

View File

@ -69,4 +69,7 @@ function heartbeat() {
pressure = 100;
}
heartBeat = true;
// Play the heartbeat sound
soundAssets.heartbeat.play();
};

View File

@ -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)
}
/**

Binary file not shown.

View File

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