Skip to content

Commit

Permalink
๐Ÿฉน fix : ๊ณต๋ฃก๊ฒŒ์ž„, ์บ๋ฆญํ„ฐ ์„ ํƒ์ฐฝ ๋””์ž์ธ ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
indaegu committed Apr 28, 2024
1 parent e82b8d2 commit 88f0066
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 12 deletions.
30 changes: 22 additions & 8 deletions css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,22 +105,22 @@ body {

.joystick-left {
animation: jostickLeft;
animation-duration: 0.5s;
animation-duration: 0.2s;
}

.joystick-right {
animation: jostickRight;
animation-duration: 0.5s;
animation-duration: 0.2s;
}

.joystick-up {
animation: jostickUp;
animation-duration: 0.5s;
animation-duration: 0.2s;
}

.joystick-down {
animation: jostickDown;
animation-duration: 0.5s;
animation-duration: 0.2s;
}

#game-joystick-body-img {
Expand Down Expand Up @@ -171,24 +171,38 @@ body {

.game-controls {
position: relative;
bottom: 20%;
width: 50%;
bottom: 50%;
height: 50%;
width: 60%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 10; /* ๋‹ค๋ฅธ ์š”์†Œ ์œ„์— ํ‘œ์‹œ */
display: flex;
flex-direction: column;
justify-content: center;
justify-content: space-around;
}

.control-button.selected {
background-color: #a19f9f; /* ์„ ํƒ๋œ ๋ฒ„ํŠผ์˜ ๋ฐฐ๊ฒฝ์ƒ‰ ๋ณ€๊ฒฝ */
color: black;
color: rgb(45, 41, 41);
font-size: 1.05em; /* ํฐํŠธ ํฌ๊ธฐ ์ฆ๊ฐ€ */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* ๊ทธ๋ฆผ์ž ํšจ๊ณผ ์ถ”๊ฐ€ */
transition: transform 0.3s, box-shadow 0.3s; /* ๋ถ€๋“œ๋Ÿฌ์šด ๋ณ€ํ™” ํšจ๊ณผ */
}

.control-button-dino.selected {
background-color: #a19f9f; /* ์„ ํƒ๋œ ๋ฒ„ํŠผ์˜ ๋ฐฐ๊ฒฝ์ƒ‰ ๋ณ€๊ฒฝ */
color: rgb(45, 41, 41);
font-size: 1.05em; /* ํฐํŠธ ํฌ๊ธฐ ์ฆ๊ฐ€ */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* ๊ทธ๋ฆผ์ž ํšจ๊ณผ ์ถ”๊ฐ€ */
transition: transform 0.3s, box-shadow 0.3s; /* ๋ถ€๋“œ๋Ÿฌ์šด ๋ณ€ํ™” ํšจ๊ณผ */
}

.control-button-dino {
position: relative;
height: 25%;
}

.hide {
display: none;
}
Expand Down
1 change: 0 additions & 1 deletion css/dinosaur.css
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ input[type="text"] {
background-color: #a19f9f; /* ์„ ํƒ๋œ ๋ฒ„ํŠผ์˜ ๋ฐฐ๊ฒฝ์ƒ‰ ๋ณ€๊ฒฝ */
color: black;
font-size: 1.2em; /* ํฐํŠธ ํฌ๊ธฐ ์ฆ๊ฐ€ */
transition: transform 0.3s; /* ๋ถ€๋“œ๋Ÿฌ์šด ๋ณ€ํ™” ํšจ๊ณผ */
}
.flash-effect {
animation: flash 1s infinite;
Expand Down
6 changes: 3 additions & 3 deletions js/dinosaur/dinosaur.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ function updateGameContent() {
</div>
</div>
<div id="game-controls" class="game-controls hide">
<button id="resumeButton" class="control-button" onclick="resumeGame()">
<button id="resumeButton" class="control-button-dino" onclick="resumeGame()">
game resume
</button>
<button id="restartButton" class="control-button" onclick="restartGame()">
<button id="restartButton" class="control-button-dino" onclick="restartGame()">
game restart
</button>
<button
id="returnButton"
class="control-button"
class="control-button-dino"
onclick="returnToSelection()"
>
game select
Expand Down

0 comments on commit 88f0066

Please sign in to comment.