-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
191 lines (164 loc) · 4.19 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
<!doctype html>
<html>
<head>
<title>RogueType</title>
<meta charset="utf8" />
<meta name="author" value="Pecon" />
<meta name="description" value="A simple browser-based roguelike game that features custom user-made maps." />
<meta name="keywords" value="roguetype,game,roguelike,pecon,jazz cat" />
<meta name="viewport" content="width=1280">
<link async rel="stylesheet" href="./main.css" />
<link async rel="icon" type="image/png" href="./favicon.png" />
<script async src="./js/main.js"></script>
<script async src="./js/tilebase.js"></script>
<script async src="./js/unit.js"></script>
<script async src="./js/item.js"></script>
<script async src="./js/hazard.js"></script>
<script async src="./js/projectile.js"></script>
<link async rel="preload" href="./maps/level.dat" as="fetch" />
<link async rel="preload" href="./maps/level_easy.dat" as="fetch" />
<link async rel="preload" href="./maps/level_hard.dat" as="fetch" />
<link async rel="preload" href="./maps/zeus_map.dat" as="fetch" />
<link async rel="preload" href="./sound/title.mp3" as="audio" />
<style>
html
{
height: 100%;
width: 100%;
}
body
{
color: #DDD;
/*font-family: "neoletters", consolas, 'lucidia console', monospace;*/
font-size: 16px;
text-align: center;
user-select: none;
}
.version
{
position: absolute;
top: 1px;
left: 1px;
font-family: consolas, 'lucidia console', arial;
}
h1
{
font-size: 24px;
}
h2
{
font-size: 20px;
}
.controls
{
font-family: "neoletters", consolas, 'lucidia console', monospace;
position: fixed;
top: 0px;
left: 0px;
height: calc(100% - 32px);
width: calc(100% - 32px);
border-style: solid;
border-color: #DDD;
border-width: 16px;
margin: 0px;
padding: 0px;
background-color: #000;
z-index: 2;
}
.mapSelector
{
position: absolute;
bottom: 3px;
left: 3px;
display: none;
}
</style>
</head>
<body>
<div id="welcome" class="controls"><h1>RogueType</h1><h2>A Roguelike game by Pecon, featuring music by Jazz Cat</h2>
<br />
<pre style="font-family: 'neoletters', consolas, 'lucidia console', monospace;">Movement: W,A,S,D
Combat: Arrow keys
Wait/Rest: Spacebar
Hover the mouse over any tile or item for a description.
It is recommended that you press F11 to fullscreen your browser.
</pre>
<br />
<div id="loading">Loading, please wait...</div>
<noscript><span style="color: red; text-decoration: underline;">You must enable Javascript for this game to run.</span></noscript>
<br />
<div id="start" class="start">Press the space key to start.</div>
<div class="version">v2.2.2-stable</div>
<div id="selector" class="mapSelector">
<select id="maps">
</select>
<button onclick="addMap();">Add</button>
</div>
</div>
<div class="pageContainer" id="window"><span id="container" class="gameContainer"></span>
<br />
<div class="gameLog" id="log"></div>
<span id="inventory" class="inventoryContainer"></span>
<span class="stats">
<p>Health</p>
<pre id="healthIndicator"></pre>
<br />
<br />
<p>Stamina</p>
<pre id="staminaIndicator"></pre>
<br />
<br />
<p>Experience</p>
<pre id="expIndicator"></pre>
<br />
<br />
<p></p>
<pre id="statusIndicators"></pre>
</span>
</div>
<div class="floatingBox" id="options">
<h2>Options</h2>
<br />
Movement Keys:
<select id="optionsMovement">
<option>WASD</option>
<option>ArrowKeys</option>
<option>IJKL</option>
<option>8456</option>
<option>8426</option>
<option>HJKL</option>
</select>
<br />
<br />
Combat Keys:
<select id="optionsCombat">
<option>ArrowKeys</option>
<option>WASD</option>
<option>IJKL</option>
<option>8456</option>
<option>8426</option>
<option>HJKL</option>
</select>
<br />
<br />
Wait Key:
<select id="optionsWait">
<option>Spacebar</option>
<option>Return</option>
<option>Z</option>
</select>
<br />
<br />
Sound:
<select id="optionsSound">
<option>Enabled</option>
<option>Disabled</option>
</select>
<br />
<br />
<button onclick="updateOptions();">Apply</button> <button onclick="hideOptions();">Cancel</button>
</div>
<button class="optionsButton" onclick="displayOptions();">Options</button>
<textarea id="focusGrabber"></textarea>
</body>
</html>