From d0434ffebb50c3580afb1a6262dfa8ccd518d7e5 Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Wed, 19 Oct 2022 20:57:37 +0300 Subject: [PATCH] additional stuff --- src/components/GameField.vue | 1 + src/style.scss | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/src/components/GameField.vue b/src/components/GameField.vue index 0b997be..5c9d38b 100644 --- a/src/components/GameField.vue +++ b/src/components/GameField.vue @@ -100,6 +100,7 @@ function reset() { score.value = 0; gameOver.value = false; victory.value = false; + determineNext(); } function determineNext() { diff --git a/src/style.scss b/src/style.scss index c551a9f..bd26ef0 100644 --- a/src/style.scss +++ b/src/style.scss @@ -43,6 +43,11 @@ body { &-field { overflow: hidden; + position: absolute; + top: 0; + z-index: 1; + width: 100%; + bottom: 0; } &-score { @@ -52,6 +57,7 @@ body { &-pointer { position: absolute; + z-index: 2; width: 100px; height: 100px; @@ -81,6 +87,7 @@ body { justify-content: center; font-size: 2rem; pointer-events: none; + z-index: 4; } &-object {