File tree 2 files changed +23
-14
lines changed
2 files changed +23
-14
lines changed Original file line number Diff line number Diff line change 10
10
< body >
11
11
12
12
<!-- === 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 > © < 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 > © < a href ="https://github.com/vansh-codes/ "> vansh-codes</ a > 2024
27
+ </ p >
28
+ </ div >
27
29
</ div >
28
30
</ div >
29
31
Original file line number Diff line number Diff line change 11
11
flex-direction : column;
12
12
align-items : center;
13
13
justify-content : center;
14
+ text-align : center;
14
15
height : 100vh ;
16
+ color : white;
17
+ margin : 0 5rem ;
15
18
}
16
19
17
20
# interface h1 {
81
84
}
82
85
83
86
# game-container {
87
+ color : white;
84
88
display : none;
85
89
position : relative;
86
90
width : 100vw ;
@@ -112,6 +116,7 @@ body{
112
116
113
117
# score {
114
118
position : absolute;
119
+ color : white;
115
120
top : 10px ;
116
121
left : 10px ;
117
122
font-size : 1.4rem ;
@@ -142,6 +147,7 @@ body{
142
147
143
148
# end-screen {
144
149
display : none;
150
+ color : white;
145
151
position : fixed;
146
152
top : 50% ;
147
153
transform : translate (-50% , -50% );
@@ -150,6 +156,7 @@ body{
150
156
height : 100% ;
151
157
background-image : url ("assets/background.jpg" );
152
158
z-index : 10 ; /* Ensure it's above other elements */
159
+ margin : 0 5rem ;
153
160
}
154
161
155
162
.popup {
You can’t perform that action at this time.
0 commit comments