From 8398636f010b940c2a9cab9f3ebfecf729636945 Mon Sep 17 00:00:00 2001 From: Mike Smith <89040888+smiggiddy@users.noreply.github.com> Date: Tue, 6 Aug 2024 17:03:59 -0400 Subject: [PATCH] feat: logic complete added styling --- .../mg-frontend/public/collect-5930.mp3 | Bin 0 -> 26400 bytes memory-game/mg-frontend/public/incorrect.mp3 | Bin 0 -> 21120 bytes memory-game/mg-frontend/src/App.jsx | 2 ++ .../mg-frontend/src/components/card.jsx | 1 - memory-game/mg-frontend/src/gameLogic.js | 27 +++++++++--------- memory-game/mg-frontend/src/styles/card.css | 24 +++++++++------- 6 files changed, 29 insertions(+), 25 deletions(-) create mode 100644 memory-game/mg-frontend/public/collect-5930.mp3 create mode 100644 memory-game/mg-frontend/public/incorrect.mp3 diff --git a/memory-game/mg-frontend/public/collect-5930.mp3 b/memory-game/mg-frontend/public/collect-5930.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..15923203484f28190d8670d498c0150f73fe8bc0 GIT binary patch literal 26400 zcmaI72~-nT_&z+zWP>D-u!La`VTS+{Kt-gIARsC#D8=B$Bp_m?ic1wLk`)MxiV7Ii z3T}u>HEtDGCSehTD!5{6HK-t3TO-&C8kukC`JMmwJLiACZ!(#C=gyrh_nG_7`##S* z*yyWFfa^cQ3;6jRz?ICuNSKpAm^##&wQ@>qMkquFYv($izIfo>$^J)m#RIRGx$NC= z+yOEku3$Nel6O;Wz}jR*HPaf zN)ij6{&s+QGWQ;nA&xyRP_!*bj-*N=meO`Ne9b;>or8 zw~?zlLx@OlNA4Y`m*f1~#}4vF;znwg+f0| z3IR^ECADV`_Z_t(0&*^7XUXEO+jQ`CxKxLC!}})r+1c10jo;xEp8dN}4gdfn3SaQ@ z|D%$JA0fh~4-){e`Y*4lqgjNR+60P(wC0SOtQ^1UNO{MHT)*4mkzd~an!?gvFG#Qw z!#0ls+?k9mg#+76*n2C+esk`!|^KPig?CA2A%?1mEhfLhw!w!FT#96QQmd z7}r=kjsZJJJx!ql556U}1=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grqs-l|upR+L2s6e5(ZYra0#l@@-6B{AhD1puFY5mId3c#)dz*5%GLe@`}!p%+Agg zuev*q??|pY96tJ&;ZWebAA&?TpT5T8z`u=1&Ry6vr9x^No~7KtTIYqSmhNrDeEjZA z^35M~=H5zIJty~X9|8U7uQN9puE#vcegk|J)JBP*5XT?>F!vdluj+fa_UWXF_aTo* zZKjtZpSI6`h+RZe6GS`qQI@|)-BGF}k`WVhy19G@>JH!+-amel@2B2Sl`f9;Gdf6`9#7QeRuhd5O>c}IVkULT%(#uZ~*$Kh<3HOgb*)osF?^jeWf9hcr zP2!4<6i4>EnIzBx;7aH~S$sHjcG;0L_6~=K*19FX%(;6$C4(6@rih42!S3)jl)A-K zyJ`8S&TO_?NQzl{e6p&yhQG+tRl90e-bj+|&py_1HmU@ZB>Or~=0=6h;U6~dnAP9g z_TRj^Pxx%!&{+f8XYM~jU%{{6cCTLI5$DGJIX;g{Ox{^}dufdI9urr7_qRDc*DA$eS(kA z#958HZdlX0!)hV-tG&ywGfT6rT839HM}xrsP55xz$k`^@-Sufj;(30*U2I%uL!=JI cmR}2={34+>k1Kq!Ui9zmtN$S2|8q_M1wK&cf&c&j literal 0 HcmV?d00001 diff --git a/memory-game/mg-frontend/public/incorrect.mp3 b/memory-game/mg-frontend/public/incorrect.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..69a998c7a97b37d23b0f7a069bee067be890b56d GIT binary patch literal 21120 zcmeI2c~le2y68J(AV5F@1j3*)i9kR)36p@5Afo~zA|Or)Gm40cf@2aAAV5G+VI!gj zMFd5Sii(1ggc$@;9Kfv*WDvJ*MbIrE(y!yWXP@`STW_uBJ@2l&@7kRns;aB1tG{1; z-&a)~XmU6bSkQ-50Im!Jr3VTc5$nwX$LpZu3r9z(wgX3C>m5(NOtANuT&i}=`S8u< zE8JXCdzU`O*mL}CcPiWZnA-L^+VV#!hU#S6VREY*3T0-JZMGz<+&FDig>8vp5cQIR z_5|#5-$_fP?Ql#0x0=S_VhW>*qfbW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rwIa{#l zyiR=D=aP$6za6l@y8Mvw3w3VFmGB*l8;AW?Wgc2=dR}3J$IXqd$D5D#y|-=)$E{iw zcl2`NvQ^paS1+`#Ezrx~d$)F|=oIk*c9($zuh&Fasj6jLls0A&$O(L+%+O5xG;ZB2 zI)bU>ZS+#MV}G^2uu4tMj2E`Zb#O)Bk6RxNDZS>}Io6^?k}Vr<@BYf-*iq+4FV zInCF&FSeK5g&OARHBMfO*2HZJMr^-tVxiq`dM#n`x<-=7fLU#Q66eE&kQexj*= t^Zf~-{e_DB&G#<^>nED}H{YKS+Fz*1-+cc + + ); } diff --git a/memory-game/mg-frontend/src/components/card.jsx b/memory-game/mg-frontend/src/components/card.jsx index 7dea710..343575b 100644 --- a/memory-game/mg-frontend/src/components/card.jsx +++ b/memory-game/mg-frontend/src/components/card.jsx @@ -9,7 +9,6 @@ export default function Card(props) {

{props.title}

-
); } diff --git a/memory-game/mg-frontend/src/gameLogic.js b/memory-game/mg-frontend/src/gameLogic.js index d70154e..a3bda62 100644 --- a/memory-game/mg-frontend/src/gameLogic.js +++ b/memory-game/mg-frontend/src/gameLogic.js @@ -24,9 +24,6 @@ class GameLogic { handleClick(key) { this.checkClickResult(key); - const cards = document.querySelectorAll(".card"); - cards.forEach((card) => card.classList.add("flip", "card-back", "hidden")); - const tempCards = this.cards.map((card) => { if (card.key === key) { card.clicked = true; @@ -35,10 +32,10 @@ class GameLogic { }); this.setCards(tempCards); this.randomArrayOrder(); + const cards = document.querySelectorAll(".card"); + cards.forEach((card) => card.classList.add("flip", "hidden")); setTimeout(() => { - cards.forEach((card) => - card.classList.remove("flip", "card-back", "hidden"), - ); + cards.forEach((card) => card.classList.remove("flip", "hidden")); }, 1000); } @@ -67,17 +64,19 @@ class GameLogic { } checkClickResult(key) { - if (this.score + 1 === this.cards.length) { - this.setMessage("You won!\n12/12 right"); - this.setButtonText("Play again?"); - this.resetGame(); - return; - } - - // go through game if (!this.checkClick(key)) { + // Check if this move wins + if (this.score + 1 === this.cards.length) { + this.setMessage("You won!\n12/12 right"); + this.setButtonText("Play again?"); + this.resetGame(); + return; + } + // Play a Sound for the right Answer + document.querySelector(".audio-right").play(); this.setScore(this.score + 1); } else { + document.querySelector(".audio-wrong").play(); this.handleLoss(); } } diff --git a/memory-game/mg-frontend/src/styles/card.css b/memory-game/mg-frontend/src/styles/card.css index 601ee57..8e1719a 100644 --- a/memory-game/mg-frontend/src/styles/card.css +++ b/memory-game/mg-frontend/src/styles/card.css @@ -13,26 +13,30 @@ } .flip { - animation: flipCard 1s; + animation: flipCard 2.4s; } @keyframes flipCard { + from { + color: gray; + } + 20% { + color: gray; + transform: rotateY(180deg); + background-color: black; + } to { - rotatey: 180deg; + transform: rotateY(-180deg); + visibility: visible; } } .card-front .card-back { - -webkit-backface-visibility: hidden; /* Safari */ + -webkit-backface-visibility: hidden; backface-visibility: hidden; } -.card-back { - background: gray; - color: gray; - transform: rotateY(180deg); -} - -.hidden img { +.hidden img, +.hidden .card-title { visibility: hidden; }