Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Deploy: https://spectacular-cactus-16993b.netlify.app

# Eldritch Horror Codejam

## Описание проекта
Expand Down
Binary file added assets/Audio/01890.mp3
Binary file not shown.
Binary file added assets/Audio/6802dff441a6d4e (mp3cut.net).mp3
Binary file not shown.
Binary file added assets/Audio/film-ujasov-kino.mp3
Binary file not shown.
Binary file added assets/Audio/mb_card_deal_08.mp3
Binary file not shown.
Binary file added assets/Audio/monster1.mp3
Binary file not shown.
Binary file added assets/Audio/monster2.mp3
Binary file not shown.
Binary file added assets/Audio/monster3.mp3
Binary file not shown.
Binary file added assets/Audio/monster4.mp3
Binary file not shown.
Binary file added assets/Background/background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Blood/blood.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Favicon/FavIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Font/ofont.ru_Old Horror Films.ttf
Binary file not shown.
Binary file added assets/Gif/fire-65.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Gif/you-died.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Rain/water.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Scroll/scroll.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Stages/blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Stages/brown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Stages/green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/home.png
Binary file not shown.
32 changes: 32 additions & 0 deletions audio.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
const knife = new Audio('./assets/Audio/6802dff441a6d4e (mp3cut.net).mp3');
const rain = new Audio('./assets/Audio/01890.mp3');
const takeCard = document.querySelector(".deck");
const card1 = document.querySelector('.card1');
const card2 = document.querySelector('.card2');
const card3 = document.querySelector('.card3');
const card4 = document.querySelector('.card4');
const difficulty = document.querySelectorAll(".difficulty");

function playAudio(item, audio, volume) {
item.addEventListener("click", () => {
audio.play();
});
audio.volume = volume;
}

difficulty.forEach(item => {
item.addEventListener("click", () => {
knife.play();
knife.volume = .5;
});
});

playAudio(card1, new Audio('./assets/Audio/monster1.mp3'), .5);
playAudio(card2, new Audio('./assets/Audio/monster2.mp3'), .5);
playAudio(card3, new Audio('./assets/Audio/monster3.mp3'), .5);
playAudio(card4, new Audio('./assets/Audio/monster4.mp3'), .5);
playAudio(takeCard, new Audio('./assets/Audio/mb_card_deal_08.mp3'), .5);

rain.play();
rain.loop = true;
rain.volume = .5;
6 changes: 1 addition & 5 deletions data/ancients.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Ancients from '../assets/Ancients/index'

const ancientsData = [
{
id: 'azathoth',
Expand Down Expand Up @@ -81,6 +79,4 @@ const ancientsData = [
brownCards: 4,
},
},
]

export default ancientsData
];
4 changes: 1 addition & 3 deletions data/difficulties.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@ const difficulties = [
id: 'hard',
name: 'Высокая'
},
]

export default difficulties
]
78 changes: 0 additions & 78 deletions data/mythicCards/blue/index.js

This file was deleted.

88 changes: 88 additions & 0 deletions data/mythicCards/blue/indexBlue.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
const cardsDataBlue = [
{
number: 1,
id: 'blue1',
cardFace: './assets/MythicCards/blue/blue1.png',
difficulty: 'hard',
color:'blue'
},
{
number: 2,
id: 'blue2',
cardFace: './assets/MythicCards/blue/blue2.png',
difficulty: 'hard',
color:'blue'
},
{
number: 3,
id: 'blue3',
cardFace: './assets/MythicCards/blue/blue3.png',
difficulty: 'easy',
color:'blue'
},
{
number: 4,
id: 'blue4',
cardFace: './assets/MythicCards/blue/blue4.png',
difficulty: 'easy',
color:'blue'
},
{
number: 5,
id: 'blue5',
cardFace: './assets/MythicCards/blue/blue5.png',
difficulty: 'easy',
color:'blue'
},
{
number: 6,
id: 'blue6',
cardFace: './assets/MythicCards/blue/blue6.png',
difficulty: 'hard',
color:'blue'
},
{
number: 7,
id: 'blue7',
cardFace: './assets/MythicCards/blue/blue7.png',
difficulty: 'normal',
color:'blue'
},
{
number: 8,
id: 'blue8',
cardFace: './assets/MythicCards/blue/blue8.png',
difficulty: 'hard',
color:'blue'
},
{
number: 9,
id: 'blue9',
cardFace: './assets/MythicCards/blue/blue9.png',
difficulty: 'normal',
color:'blue'
},
{
number: 10,
id: 'blue10',
cardFace: './assets/MythicCards/blue/blue10.png',
difficulty: 'easy',
color:'blue'
},
{
number: 11,
id: 'blue11',
cardFace: './assets/MythicCards/blue/blue11.png',
difficulty: 'normal',
color:'blue'
},
{
number: 12,
id: 'blue12',
cardFace: './assets/MythicCards/blue/blue12.png',
difficulty: 'normal',
color:'blue'
},
]

export default cardsDataBlue;
132 changes: 0 additions & 132 deletions data/mythicCards/brown/index.js

This file was deleted.

Loading