Skip to content

Commit

Permalink
add labirint game
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Ost committed Mar 25, 2024
1 parent 55d1951 commit 3e55c1d
Show file tree
Hide file tree
Showing 33 changed files with 1,137 additions and 13 deletions.
Binary file modified .DS_Store
Binary file not shown.
6 changes: 6 additions & 0 deletions .metals/metals.lock.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#FileLock
#Sat Mar 23 13:00:55 MSK 2024
hostName=localhost
id=18e6ac1958bcfabd8a4f6d0d994189ad9e061c25913
method=file
server=localhost\:52505
236 changes: 236 additions & 0 deletions .metals/metals.log

Large diffs are not rendered by default.

Binary file added .metals/metals.mv.db
Binary file not shown.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files.watcherExclude": {
"**/target": true
}
}
27 changes: 25 additions & 2 deletions common_scripts/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ const messages = {

const taskConditions = ["Задача 1", "Задача 2", "Задача 3",
"Задача 4", "Задача 5", "Задача 6",
"Задача 7", "Задача 8", "Задача 9"
"Задача 7", "Задача 8", "Задача 9",
"Задача 10", "Задача 11", "Задача 12",
"Задача 13", "Задача 14", "Задача 15",
"Задача 16", "Задача 17", "Задача 18",
"Задача 19", "Задача 20", "Задача 21",
"Задача 22", "Задача 23", "Задача 24"
];

const gameOverWiners = {
Expand All @@ -26,6 +31,24 @@ const writeDownScoreWords = {
team: "Команда ",
score: " Счет "
}

const flowersColors = [
"#cf3636", "#de6868", "#eba97a", "#f5771d",
"#f5cf45", "#3dbfab", "#76c6e3", "#3d9cbf",
"#3e67b5", "#8b72b8", "#8a4df7", "#7e18a8",
"#cd91e6", "#d175c3", "#a61f91"
]













export {messages, taskConditions, gameOverWiners, scoreZeroSetting, writeDownScoreWords}
export {messages, taskConditions, gameOverWiners, scoreZeroSetting, writeDownScoreWords, flowersColors }
7 changes: 7 additions & 0 deletions common_scripts/random.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
function getRandomIntInclusive(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min + 1) + min); // Максимум и минимум включаются
}

export { getRandomIntInclusive }
6 changes: 6 additions & 0 deletions common_scripts/side-bar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const toggle = document.querySelector(".toggle");

toggle.addEventListener("click", function () {
let item = document.getElementById("sidebar");
item.classList.toggle("active-me");
});
File renamed without changes.
File renamed without changes.
Binary file modified game_domino/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion game_domino/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h1 class="game-title">ДОМИНО</h1>
<a href="../game_krestiki_noliki/index.html">
<li><h2>Крестики-нолики</h2></li>
</a>
<a>
<a href="../game_labirint/index.html">
<li><h2>Лабиринт</h2></li>
</a>
<a>
Expand Down
4 changes: 2 additions & 2 deletions game_domino/styles/style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@font-face {
font-family: 'Press Start 2P';
src: url('../fonts/PressStart2P-Regular.woff') format('woff2'),
url('../fonts/PressStart2P-Regular.woff') format('woff');
src: url('../../fonts/PressStart2P-Regular.woff') format('woff2'),
url('../../fonts/PressStart2P-Regular.woff') format('woff');
}

.header
Expand Down
Binary file modified game_krestiki_noliki/.DS_Store
Binary file not shown.
Binary file removed game_krestiki_noliki/fonts/PressStart2P-Regular.woff
Binary file not shown.
2 changes: 1 addition & 1 deletion game_krestiki_noliki/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h1 class="game-title">КРЕСТИКИ НОЛИКИ</h1>
<a>
<li><h2>Карусель</h2></li>
</a>
<a>
<a href="../game_labirint/index.html">
<li><h2>Лабиринт</h2></li>
</a>
<a>
Expand Down
4 changes: 2 additions & 2 deletions game_krestiki_noliki/styles/style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@font-face {
font-family: 'Press Start 2P';
src: url('../fonts/PressStart2P-Regular.woff') format('woff2'),
url('../fonts/PressStart2P-Regular.woff') format('woff');
src: url('../../fonts/PressStart2P-Regular.woff') format('woff2'),
url('../../fonts/PressStart2P-Regular.woff') format('woff');
}

.header
Expand Down
Binary file added game_labirint/.DS_Store
Binary file not shown.
Binary file not shown.
140 changes: 140 additions & 0 deletions game_labirint/images/labirint.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions game_labirint/images/task.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3e55c1d

Please sign in to comment.