From be4e2fd1524141c08f18098f1956c8f343f7601d Mon Sep 17 00:00:00 2001
From: katyaganina <89980843+katyaganina@users.noreply.github.com>
Date: Tue, 9 Jul 2024 15:47:15 +0200
Subject: [PATCH] Feature/background music and sounds (#45)
* Background music and sounds
added background music, click sound for buttons, sound for click on some answer, sound for the rocket and explosion as the tower collapses, sound for the end screen with the winner
* Update README.md
added audio sources to README
* Fixed music and sounds
---
.eslintrc.js | 7 -----
README.md | 34 +++++++++++++++++++++
src/App.vue | 40 +++++++++++++++++++++++--
src/assets/music/background_music.mp3 | Bin 0 -> 3953938 bytes
src/assets/music/click_sound.mp3 | Bin 0 -> 13869 bytes
src/assets/music/good_result_sound.mp3 | Bin 0 -> 71565 bytes
src/assets/music/put_vote_sound.mp3 | Bin 0 -> 33837 bytes
src/assets/towercrush.mp4 | Bin 102999 -> 5566511 bytes
src/components/GameComponent.vue | 12 ++++++++
src/components/LobbyComponent.vue | 11 +++++++
src/components/StartComponent.vue | 8 +++++
11 files changed, 102 insertions(+), 10 deletions(-)
create mode 100644 src/assets/music/background_music.mp3
create mode 100644 src/assets/music/click_sound.mp3
create mode 100644 src/assets/music/good_result_sound.mp3
create mode 100644 src/assets/music/put_vote_sound.mp3
diff --git a/.eslintrc.js b/.eslintrc.js
index 3be76c2..0dacbcd 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -7,7 +7,6 @@ module.exports = {
"plugin:vue/vue3-essential",
"eslint:recommended",
"@vue/typescript/recommended",
- "plugin:prettier/recommended",
],
parserOptions: {
ecmaVersion: 2020,
@@ -15,12 +14,6 @@ module.exports = {
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
- "prettier/prettier": [
- "error",
- {
- endOfLine: "auto",
- },
- ],
},
overrides: [
{
diff --git a/README.md b/README.md
index c0dfc75..6793cd9 100644
--- a/README.md
+++ b/README.md
@@ -39,4 +39,38 @@ You can remove the container with:
docker compose down
```
+
+To monitor the container you can use the following command:
+```sh
+docker ps -a -f name=towercrush
+```
+To stop the container you can use the following command:
+```sh
+docker stop towercrush
+```
+To remove the container you can use the following command:
+```sh
+docker rm towercrush
+```
+
+## Audio sources
+
+1. Background music
+https://pixabay.com/de/music/elektronisch-going-on-foot-133469/
+
+2. Click
+https://pixabay.com/de/sound-effects/interface-button-154180/
+
+3. Good result
+https://pixabay.com/de/sound-effects/goodresult-82807/
+
+4. Put vote sound
+https://pixabay.com/de/sound-effects/button-198922/
+
+5. Rocket whistle
+https://zvukogram.com/zvuk/41741/
+
+6. Explosion sound
+https://zvukogram.com/zvuk/41741/
+
> End of additions
diff --git a/src/App.vue b/src/App.vue
index 64a1d26..02eb8c2 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -10,11 +10,11 @@
Restart
-
+
Close
@@ -27,7 +27,23 @@