-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
89 lines (83 loc) · 2.06 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
<!DOCTYPE html>
<html>
<head>
<title>Packmunn</title>
<style type="text/css">
body {
padding: 0px;
margin: 0px;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
canvas {
background-image: url('packmunn-map.png');
}
.wrapper {
display: flex;
flex-direction: column;
align-items: center;
}
.score {
margin-bottom: 1rem;
margin-top: 1rem;
font-weight: bold;
font-size: 24px;
}
.modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100vw;
height: 100%;
overflow: auto;
background-color: rgb(0, 0, 0);
background-color: rgba(0, 0, 0, 0.4);
}
.modal-content {
display: flex;
flex-direction: column;
background-color: #fefefe;
margin: 30% auto;
border: 1px solid #888;
width: 50vw;
text-align: center;
}
.modal-content p {
font-family: 'Comic Sans MS', 'Comic Sans', cursive;
font-size: 20px;
text-align: center;
}
.close {
display: none;
}
button {
font-family: 'Comic Sans MS', 'Comic Sans', cursive;
font-size: 20px;
margin-bottom: 2rem;
width: 50%;
align-self: center;
cursor: pointer;
}
</style>
</head>
<body>
<img src="munn-frenzy.png" style="display: none" />
<div class="wrapper">
<div id="gameOverModal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<p>Munn down! Game over.</p>
<button onClick="window.location.reload();">Retry?</button>
</div>
</div>
<img src="packmunn-logo.png" width="350px" title="PackMunn" />
<div class="score">0</div>
<canvas id="game" width="600px" height="770px"></canvas>
</div>
<script type="module" src="game.js"></script>
</body>
</html>