-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
113 lines (110 loc) · 2.93 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<html>
<head>
<title>Ms. Pac-Man</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="images/favicon.ico">
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu"
crossorigin="anonymous"
/>
<link rel="stylesheet" title="styles" href="./styles.css" />
<script src="./index.js" type="module"></script>
</head>
<body style="background-color: black; padding: 10px">
<div
style="
position: relative;
display: flex;
margin: 0px auto;
justify-content: center;
"
>
<div
id="header"
style="position: absolute; z-index: 800; margin: 0px auto"
>
<button
id="start-button"
type="button"
class="btn btn-success"
style="width: 120px; margin: 10px; position: relative; z-index: 101"
>
Start Game
</button>
<button
id="stop-button"
type="button"
class="btn btn-danger"
style="
width: 120px;
display: none;
margin: 10px;
position: relative;
z-index: 101;
"
>
Pause Game
</button>
<button
id="restart-button"
type="button"
class="btn btn-success"
width="200"
height="30"
style="display: none; margin: 10px; position: relative; z-index: 101"
>
Play Again?
</button>
<div
id="score-board"
style="
position: absolute;
color: chartreuse;
font-family: 'Press Start 2P', cursive;
z-index: 400;
top: 10;
padding: 10px;
display: flex;
justify-content: right;
right: 10px;
width: 200px;
background-color: black;
"
>
<div style="width: 50px; flex-shrink: 0">Score:</div>
<div
id="score"
style="width: 100px; text-align: right; flex-shrink: 1"
>
0
</div>
</div>
</div>
</div>
<div
style="
position: relative;
display: flex;
margin: 0px auto;
width: fit-content;
height: 100%;
justify-content: center;
padding: 20px;
"
>
<div
id="game"
style="position: absolute; z-index: 100; margin: 0px auto"
></div>
</div>
<div class="test-div"></div>
</body>
</html>