generated from tassaron/muffin-game-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
81 lines (70 loc) · 2.14 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
<!--
This HTML file is merely an example of how to embed the game within a webpage.
It can be embedded anywhere with HTML elements that have IDs `game` and `pause_button`
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Pipe Puzzle</title>
<style>
:root {
--arcade-font: "Ubuntu", "Roboto", sans-serif;
}
a, a:visited {
color: lavender;
text-underline-offset: 0.175rem;
text-decoration-thickness: 0.075rem;
text-decoration-skip-ink: none;
}
a:hover, a:focus {
text-underline-offset: 0.375rem;
text-decoration-thickness: 0.125rem;
}
body {
padding: 0;
margin: auto auto;
background: #6d4a82;
color: #eee;
text-align: center;
margin-top: 2em;
font-family: sans;
}
#game {
border: 8px dashed #4e315e;
width: 800px;
height: 600px;
margin: auto;
margin-top: 1rem;
margin-bottom: 1rem;
box-shadow: 0 0 0.75rem 0.375rem rgba(78, 49, 94, 0.3);
}
main {
margin: auto;
}
#pause_button {
padding: 1rem 2rem;
border-radius: 0;
}
#pause_button:focus-within, #pause_button:hover {
box-shadow: 0 0.375rem 0.5rem rgba(78, 49, 94, 0.4);
outline: rgba(78, 49, 94, 0.4) solid 0.375rem;
}
</style>
</head>
<body>
<main>
<h1>Pipe Puzzle</h1>
<div id="help_text">Place pipes to guide the water to the open side of the grid</div>
<div id="game"></div>
<button type="button" id="pause_button">Pause</button>
<button type="button" id="send_score_button">Send Score</button>
<p>
<small>
<a href="https://rainey.tech">made by tassaron</a> - <a href="https://github.com/tassaron/pipe-puzzle">source code on github</a>
</small>
</p>
</main>
<script src="bundle.js"></script>
</body>
</html>