Skip to content

Commit ab92dbe

Browse files
VanshVansh
Vansh
authored and
Vansh
committed
resposnivity for phones
1 parent 16db3f8 commit ab92dbe

File tree

2 files changed

+23
-14
lines changed

2 files changed

+23
-14
lines changed

index.html

+16-14
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,22 @@
1010
<body>
1111

1212
<!-- === INTERFACE === -->
13-
<div id="interface">
14-
<h1>Cosmic Blast</h1>
15-
<p>Welcome to the Cosmic Blast Game! Save the Earth from incoming asteroids by clicking on them.</p>
16-
<p>Instructions:</p>
17-
<ul>
18-
<li>Click on the asteroids to destroy them and increase your score.</li>
19-
<li>Missed asteroids will damage Earth, causing it to slowly fade as its health decreases</li>
20-
<li>If health reaches zero, the game is over.</li>
21-
</ul>
22-
<button id="start-btn" class="start-btn">Start Game</button>
23-
<!-- <button class="start-btn"><a href="/">HOME</a></button> -->
24-
<div class="footer">
25-
<p>&copy; <a href="https://github.com/vansh-codes/">vansh-codes</a> 2024
26-
</p>
13+
<div class="col-md-12">
14+
<div id="interface">
15+
<h1>Cosmic Blast</h1>
16+
<p>Welcome to the Cosmic Blast Game! Save the Earth from incoming asteroids by clicking on them.</p>
17+
<p>Instructions:</p>
18+
<ul>
19+
<li>Click on the asteroids to destroy them and increase your score.</li>
20+
<li>Missed asteroids will damage Earth, causing it to slowly fade as its health decreases</li>
21+
<li>If health reaches zero, the game is over.</li>
22+
</ul>
23+
<button id="start-btn" class="start-btn">Start Game</button>
24+
<!-- <button class="start-btn"><a href="/">HOME</a></button> -->
25+
<div class="footer">
26+
<p>&copy; <a href="https://github.com/vansh-codes/">vansh-codes</a> 2024
27+
</p>
28+
</div>
2729
</div>
2830
</div>
2931

style.css

+7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ body{
1111
flex-direction: column;
1212
align-items: center;
1313
justify-content: center;
14+
text-align: center;
1415
height: 100vh;
16+
color: white;
17+
margin: 0 5rem;
1518
}
1619

1720
#interface h1 {
@@ -81,6 +84,7 @@ body{
8184
}
8285

8386
#game-container {
87+
color: white;
8488
display: none;
8589
position: relative;
8690
width: 100vw;
@@ -112,6 +116,7 @@ body{
112116

113117
#score {
114118
position: absolute;
119+
color: white;
115120
top: 10px;
116121
left: 10px;
117122
font-size: 1.4rem;
@@ -142,6 +147,7 @@ body{
142147

143148
#end-screen {
144149
display: none;
150+
color: white;
145151
position: fixed;
146152
top: 50%;
147153
transform: translate(-50%, -50%);
@@ -150,6 +156,7 @@ body{
150156
height: 100%;
151157
background-image: url("assets/background.jpg");
152158
z-index: 10; /* Ensure it's above other elements */
159+
margin: 0 5rem;
153160
}
154161

155162
.popup {

0 commit comments

Comments
 (0)