+
+
+
+
diff --git a/src/assets/Design/Hear0l.png b/src/assets/Design/HeartEmpty.png similarity index 100% rename from src/assets/Design/Hear0l.png rename to src/assets/Design/HeartEmpty.png diff --git a/src/css/game.css b/src/css/game.css index 82c345a..509018d 100644 --- a/src/css/game.css +++ b/src/css/game.css @@ -73,6 +73,57 @@ background-size: cover; } +.container-first .content .boss .dmg { + width: 600px; + position: absolute; + bottom: 100px; + left: 50%; + transform: translateX(-50%); + image-rendering: pixelated; + background-repeat: no-repeat; + background-size: cover; + display: none; +} + +@keyframes shake { + 0% { + transform: translateX(-50%); + } + + 25% { + transform: translateX(calc(-50% - 5px)); + } + + 50% { + transform: translateX(calc(-50% + 5px)); + } + + 75% { + transform: translateX(calc(-50% - 5px)); + } + + 100% { + transform: translateX(-50%); + } +} + +.animate-shake { + animation: shake 0.3s ease-in-out; +} + +.container-first .hearts { + position: absolute; + bottom: 42%; + left: 50%; + transform: translateX(-50%); + image-rendering: pixelated; + z-index: 999; +} + +.container-first .hearts img { + width: 50px; +} + .container-first .content .quiz { width: 1000px; height: 200px; diff --git a/src/game/firstperson.html b/src/game/firstperson.html index 89ad2ae..19f750e 100644 --- a/src/game/firstperson.html +++ b/src/game/firstperson.html @@ -1,29 +1,40 @@ +
+
+
+
+