From 8d15bf8bb6e1f3add7621fd4e72726293040b90b Mon Sep 17 00:00:00 2001 From: jakub Date: Wed, 26 Feb 2025 23:25:46 +0100 Subject: [PATCH] x --- css/game.scss | 11 +++++- index.html | 8 +--- javascript/client-only-logic.js | 67 ++++++++++++++++++++++++++------- javascript/game-logic.js | 37 +++++++++++++----- 4 files changed, 94 insertions(+), 29 deletions(-) diff --git a/css/game.scss b/css/game.scss index a870119..9c86065 100644 --- a/css/game.scss +++ b/css/game.scss @@ -42,6 +42,7 @@ } } } + #game{ #playfield{ background: rgb(180, 124, 52); @@ -80,4 +81,12 @@ } } } -} \ No newline at end of file +} + +@keyframes invalid-move-animation { + 0% { transform: translateX(0) } + 25% { transform: translateX(5px) } + 50% { transform: translateX(-5px) } + 75% { transform: translateX(5px) } + 100% { transform: translateX(0) } + } \ No newline at end of file diff --git a/index.html b/index.html index f44a89f..ce4715f 100644 --- a/index.html +++ b/index.html @@ -9,13 +9,9 @@ -
-
- -
+
+
- -