Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change in Simon_Says game #3416

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Games/Simon_Game_Challenge/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@

<body>
<div style="text-align: left; margin-left: 10px;
margin-top: 10px;
margin-top: 0px;
font-size: 40px;
padding: 5px; "><a href="https://kunjgit.github.io/GameZone/"><i style="color:white;" class="fas fa-home home-icon"></i></a></div>
padding: 2px; "><a href="https://kunjgit.github.io/GameZone/"><i style="color:white; display: flex;" class="fas fa-home home-icon"></i></a></div>
<h1 id="level-title">Press Any Key to Start</h1>
<h2 id="highest">Highest reached level : 0</h2>

<div class="container">
<div class="game-section">
<div class="row">
Expand All @@ -43,7 +44,7 @@ <h2 id="highest">Highest reached level : 0</h2>
<div class="instructions-section">
<h2><u>Instructions</u></h2>
<p>
<b>Objective:</b>To remember and repeat a sequence of colors shown by
<span style="color:red;font-size:1.4rem">Objective: </span>To remember and repeat a sequence of colors shown by
the game. The sequence will keep getting longer as you progress. Your
goal is to replicate the sequence accurately to achieve the highest
level possible.
Expand Down
57 changes: 36 additions & 21 deletions Games/Simon_Game_Challenge/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,54 +2,62 @@ body {
text-align: center;
background-color: #011f3f;
}

h2{
font-size: 1.7rem;
}
#highest {
color: #fef2bf;
margin-right:320px;
padding: 0px;
margin-bottom: 0px;
margin-top: 0s;
}
#level-title {
font-family: "Press Start 2P", cursive;
font-size: 2.5rem;
margin-right:500px;
margin-left: 230px;
font-size: 2.3rem;
margin-right:535px;
margin-left:240px;
color: #fef2bf;
margin-top: 0px;
top: 0;
position: relative;
margin-bottom:5px;
}
#play-button {
font-family: "Press Start 2P", cursive;
font-size: 5rem;
font-size: 4.5rem;
color: #fef2bf;
margin-right: 360px;
margin-top:0px;
margin-left: 460px;
position:fixed;
margin-bottom:50px;
}

#play-button > i:hover {
cursor: pointer;
transform: scale(1.1);
/* transform: scale(1.1); */
transition: .2s ease;
color: #e90064;
filter: drop-shadow(2px 2px 1px black);
}

.container {
position:sticky;
display: flex;
flex-wrap: wrap;
justify-content: center;
justify-content:start;
margin-left: 198px;
}

.game-section {
display: flex;
position: sticky;
flex-direction: column;
width: 70%;
margin: 30px;
margin-left: 50px;
width: 50%;
margin: 0 30px;
margin-left: 20px;
}

.instructions-section {
background-color: #fef2bf;
position: fixed;
font-size: medium;
font-weight: bold;
flex: 1;
Expand All @@ -58,6 +66,10 @@ body {
display: flex;
flex-direction:column;
justify-content: center;
height: 100vh;
width:300px;
top: 0;
right: 0;
}

@media only screen and (max-width: 768px) {
Expand All @@ -72,19 +84,20 @@ body {
}
.game-section,
.instructions-section {
width: 100%;
width:200px;
margin-left:6px;
/* margin: 10px auto; */
}
}

.btn {
display: inline-block;
height: 150px;
width: 150px;
height: 130px;
width: 130px;
border: 5px solid black;
border-radius: 10%;
margin: 5px;
position: sticky;
}

.game-over {
Expand All @@ -98,6 +111,7 @@ body {

.green {
background-color: #379237;

}

.blue {
Expand All @@ -106,6 +120,7 @@ body {

.yellow {
background-color: #ffea20;

}

.pressed {
Expand All @@ -116,18 +131,18 @@ body {
@media only screen and (max-width: 1024px) {
/* styles for tablet */
.container {
width: 80%;
width: 60%;
}
.btn {
height: 150px;
width: 150px;
height: 140px;
width: 140px;
}
#highest{
margin:0%;
}
#level-title,
#play-button {
font-size: 5rem;
font-size: 4rem;
margin:0%;
}
}
Expand Down
Loading