-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
217 lines (215 loc) · 6.98 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="msapplication-tap-highlight" content="no" />
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Droid+Sans+Mono" type="text/css">
<link rel="stylesheet" href="octicons/octicons.css" type="text/css">
<script src="js/hammer.min.js"></script>
<script src="js/rot.min.js"></script>
<script src="js/preventGhostClick.js"></script>
<script src="js/sprintf.min.js"></script>
<script src="js/array2d.js"></script>
<script src="js/game.js"></script>
<script src="js/geometry.js"></script>
<script src="js/utilities.js"></script>
<script src="js/screens.js"></script>
<script src="js/glyph.js"></script>
<script src="js/dynamicglyph.js"></script>
<script src="js/tile.js"></script>
<script src="js/builder.js"></script>
<script src="js/map.js"></script>
<script src="js/entity.js"></script>
<script src="js/entitymixins.js"></script>
<script src="js/repository.js"></script>
<script src="js/deck.js"></script>
<script src="js/blessing.js"></script>
<script src="js/blessings.js"></script>
<script src="js/entities.js"></script>
<script src="js/maps/citadel.js"></script>
<style>
body {
background: black;
text-align: center;
touch-action: auto;
}
canvas {
width: 100%;
max-width: 720px;
display: block;
margin: auto;
border: 1px solid #333;
touch-action: pan-x pan-y;
}
h1 {
color: #eee;
font-family: "Droid Sans Mono", monospace;
font-size: 18px;
display: block;
margin: auto;
margin-bottom: 12px;
}
.githublink {
position: absolute;
top: 10px;
right: 7px;
color: #333;
-webkit-transition: all 1s;
transition: all 1s;
}
.githublink:hover, .githublink:active {
color: #fff;
-webkit-transition: all 1s;
transition: all 1s;
}
.hint {
font-family: "Droid Sans Mono", monospace;
color: #333;
}
.message {
font-family: "Droid Sans Mono", monospace;
color: #555;
-webkit-transition: all 0.5s;
transition: all 0.5s;
}
.message a {
color: #777;
text-decoration: none;
-webkit-transition: all 0.5s;
transition: all 0.5s;
}
.message a:hover {
background: #333;
-webkit-transition: all 1s;
transition: all 1s;
}
#touchcontrols {
margin: auto;
}
button {
text-align: center;
display: inline-block;
width: 45px;
height: 45px;
margin: 5px 5px;
padding: 0;
background: #333;
color: #eee;
font-family: "Droid Sans Mono", monospace;
font-size: 18px;
border: 2px solid #333;
border-radius: 50%;
cursor: pointer;
outline: none;
-ms-touch-action: manipulation;
touch-action: manipulation;
-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-tap-highlight-color: transparent;
}
button:active {
background: #555;
}
button .mega-octicon {
width: 45px;
text-align: center;
padding: 0;
margin: 0;
}
.hidden {
display:none;
}
.keyboard {
color: #333;
background: #000;
border: none;
width: auto;
border-radius: 2px;
}
.keyboard:active {
background: #222;
}
#touchcontrols{
touch-action: auto;
}
@media (min-width: 420px) {
canvas {
width: 90%;
}
}
@media (min-width: 620px) {
button {
width: 48px;
height: 48px;
margin: 6px 6px;
}
button .mega-octicon {
width: 48px;
}
}
@media (min-width: 670px) {
button {
width: 52px;
height: 52px;
}
button .mega-octicon {
width: 52px;
}
}
@media (min-width: 740px) {
button {
width: 64px;
height: 64px;
margin: 8px 8px;
}
button .mega-octicon {
width: 64px;
}
#touchcontrols {
width: 720px;
}
@media (min-width: 860px) {
.buttonrow {
display: block;
}
#touchcontrols {
width: 800px;
}
}
</style>
<title>Chitinous Crooks</title>
</head>
<body>
<h1>Chitinous Crooks</h1>
<a class="githublink" title="View Source on GitHub" href="https://github.com/walsh9/7drl2015"><span class="mega-octicon octicon-mark-github"></span></a>
<div id="game"></div>
<div id="touchcontrols" class="hidden">
<span class="buttonrow">
<button class="bh"><span class="mega-octicon octicon-arrow-left"></span></button>
<button class="bj"><span class="mega-octicon octicon-arrow-down"></span></button>
<button class="bk"><span class="mega-octicon octicon-arrow-up"></span></button>
<button class="bl"><span class="mega-octicon octicon-arrow-right"></span></button>
<button class="bp">.</button>
<button class="bq">?</button>
<button class="bb">B</button>
<button class="be">E</button>
</span>
<span class="buttonrow">
<button class="b1">1</button>
<button class="b2">2</button>
<button class="b3">3</button>
<button class="b4">4</button>
<button class="b5">5</button>
<button class="b6">6</button>
<button class="b7">7</button>
<button class="b8">8</button>
<button class="b9">9</button>
</span>
<p class="message">You can also swipe left, right, up, or down on the game screen to move.</p>
</div>
<p class="hint">Press [?] for help</p>
<button class="keyboard"><span class="mega-octicon octicon-keyboard"></span>Show Touch Controls </button>
<p class="message">This is version 1.1.1, with some bugfixes and <a href="https://github.com/walsh9/7drl2015#11">other changes</a>.</p>
<p class="message">For the original 7DRL release, <a href="7drl/">click here</a>.</p>
</body>
</html>