Skip to content

Commit 6ea1fe7

Browse files
committed
done game
1 parent c85ac97 commit 6ea1fe7

12 files changed

Lines changed: 50 additions & 24 deletions

File tree

.DS_Store

0 Bytes
Binary file not shown.

hw2/.DS_Store

6 KB
Binary file not shown.

hw2/end.html

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,15 @@
88
<link href="end_style.css" rel="stylesheet">
99
</head>
1010
<body>
11-
<h1 id="message"></h1>
12-
<p id="score"></p>
13-
14-
<label for="playAgain">
15-
<button id="playAgain">Play Again</button>
16-
</label>
17-
<label for="mainMenu">
18-
<button id="mainMenu">Main Menu</button>
19-
</label>
20-
11+
<div class="box">
12+
<h1 id="message"></h1>
13+
<p id="score"></p>
2114

15+
<div class="buttons">
16+
<button id="playAgain">Play Again</button>
17+
<button id="mainMenu">Main Menu</button>
18+
</div>
19+
</div>
2220
<script src="endScript.js"></script>
2321
</body>
2422
</html>

hw2/end_style.css

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,40 @@
1+
body{
2+
background: url("images/endBG3.jpg") center / cover no-repeat fixed;
3+
}
4+
.box{
5+
margin:0;
6+
font-family: Roboto;
7+
color:black;
8+
height:80svh;
9+
display:flex;
10+
flex-direction:column;
11+
align-items:center;
12+
justify-content:center;
13+
text-align:center;
14+
padding:24px;
15+
font-size: 18px;
16+
}
117
button{
218
background:rgb(24, 24, 24);
319
color:white;
420
border-radius:12px;
521
border:none;
622
padding:12px 16px;
723
cursor:pointer;
8-
width:100%;
9-
margin-top:16px;
1024
transition:transform .2s ease;
1125
box-sizing:border-box;
26+
margin-top:0;
27+
display:inline-block;
28+
width:auto;
29+
min-width:200px;
30+
margin:12px 8px 0;
1231
}
1332
button:hover {
1433
transform: scale(1.05);
1534
}
16-
body{
17-
margin:0;
18-
font-family: Roboto;
19-
color: black;
20-
21-
display:grid;
22-
place-items:start center;
23-
padding:48px 16px;
24-
}
35+
.buttons{
36+
display:flex;
37+
gap:16px;
38+
justify-content:center;
39+
flex-wrap:wrap;
40+
}

hw2/game_style.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ body{
1717
margin:0;
1818
font-family: Roboto;
1919
color:black;
20-
min-height:100vh;
20+
min-height:80vh;
2121
display:grid;
2222
place-items:center;
2323
padding:24px;
24+
background: url("images/gameBG.jpg") center / cover no-repeat fixed;
2425
}
2526
.gameUI{
2627
display: grid;

hw2/images/bgMenu.jpg

3.79 KB
Loading

hw2/images/endBG.jpg

16.9 KB
Loading

hw2/images/endBG2.jpg

53.7 KB
Loading

hw2/images/endBG3.jpg

53.2 KB
Loading

hw2/images/gameBG.jpg

6.31 KB
Loading

0 commit comments

Comments
 (0)