-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
108 lines (106 loc) · 5.13 KB
/
Copy pathindex.html
File metadata and controls
108 lines (106 loc) · 5.13 KB
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
<!DOCTYPE html>
<html>
<head>
<title>JSDoom</title>
<link rel="stylesheet" type="text/css" href="jsdoom.css">
</head>
<body onload="setShown('wad-selection')">
<h1>DOOM!</h1>
<div id="loading">
<p id="loading-p">Loading code... If this takes too long, make sure that Javascript isn't disabled. I thought this was common sense.</p>
</div>
<script type="text/javascript" src="util.js"></script>
<script type="text/javascript" src="math.js"></script>
<script type="text/javascript" src="sound.js"></script>
<script type="text/javascript" src="font.js"></script>
<script type="text/javascript" src="englsh.js"></script>
<script type="text/javascript" src="patch.js"></script>
<script type="text/javascript" src="playpal.js"></script>
<script type="text/javascript" src="graphics.js"></script>
<script type="text/javascript" src="wad.js"></script>
<script type="text/javascript" src="random.js"></script>
<script type="text/javascript" src="wipe.js"></script>
<script type="text/javascript" src="input.js"></script>
<script type="text/javascript" src="gamestate.js"></script>
<script type="text/javascript" src="title.js"></script>
<script type="text/javascript" src="level.js"></script>
<script type="text/javascript" src="thing.js"></script>
<script type="text/javascript" src="vertex.js"></script>
<script type="text/javascript" src="sector.js"></script>
<script type="text/javascript" src="sidedef.js"></script>
<script type="text/javascript" src="linedef.js"></script>
<script type="text/javascript" src="seg.js"></script>
<script type="text/javascript" src="subsector.js"></script>
<script type="text/javascript" src="bsp.js"></script>
<script type="text/javascript" src="game.js"></script>
<script type="text/javascript" src="demo.js"></script>
<script type="text/javascript" src="main.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript" src="htmlsetup.js"></script>
<div id="wad-selection" class="hidden">
<h2>Select your WADs</h2>
<label>IWAD</label>
<input type="file" name="iwad" accept=".wad"/>
<br/>
<label>PWAD(s)</label>
<input type="file" name="pwad" accept=".wad" multiple/>
<br/>
<button type="button" onclick="setTimeout(loadFile(),0)">Play!</button>
<hr/>
<div id="config-keyboard-closed">
<button type="button" onclick="htmlToggleConfig('config-keyboard', true)">Keyboard Config</button>
</div>
<div id="config-keyboard" class="hidden">
<button type="button" onclick="htmlToggleConfig('config-keyboard', false)">Hide Keyboard Config</button>
<div class="settings">
<table>
<tr>
<td>Move Forward</td>
<td><button type="button" onclick="setupKey('forward', this)"><script>document.currentScript.parentElement.innerHTML = input.gameKeys["forward"];</script></button></td>
</tr>
<tr>
<td>Move Backward</td>
<td><button type="button" onclick="setupKey('backward', this)"><script>document.currentScript.parentElement.innerHTML = input.gameKeys["backward"];</script></button></td>
</tr>
<tr>
<td>Turn Left</td>
<td><button type="button" onclick="setupKey('left', this)"><script>document.currentScript.parentElement.innerHTML = input.gameKeys["left"];</script></button></td>
</tr>
<tr>
<td>Turn Right</td>
<td><button type="button" onclick="setupKey('right', this)"><script>document.currentScript.parentElement.innerHTML = input.gameKeys["right"];</script></button></td>
</tr>
<tr>
<td>Strafe Left</td>
<td><button type="button" onclick="setupKey('strafeleft', this)"><script>document.currentScript.parentElement.innerHTML = input.gameKeys["strafeleft"];</script></button></td>
</tr>
<tr>
<td>Strafe Right</td>
<td><button type="button" onclick="setupKey('straferight', this)"><script>document.currentScript.parentElement.innerHTML = input.gameKeys["straferight"];</script></button></td>
</tr>
<tr>
<td>Speed On</td>
<td><button type="button" onclick="setupKey('run', this)"><script>document.currentScript.parentElement.innerHTML = input.gameKeys["run"];</script></button></td>
</tr>
<tr>
<td>Strafe On</td>
<td><button type="button" onclick="setupKey('strafe', this)"><script>document.currentScript.parentElement.innerHTML = input.gameKeys["strafe"];</script></button></td>
</tr>
<tr>
<td>Fire/Attack</td>
<td><button type="button" onclick="setupKey('fire', this)"><script>document.currentScript.parentElement.innerHTML = input.gameKeys["fire"];</script></button></td>
</tr>
<tr>
<td>Use</td>
<td><button type="button" onclick="setupKey('use', this)"><script>document.currentScript.parentElement.innerHTML = input.gameKeys["use"];</script></button></td>
</tr>
</table>
<input type="checkbox" onchange="input.autorun = this.checked"><label>Always run</label>
</div>
</div>
</div>
<div id="game" class="hidden">
<canvas id="jsdoom-canvas" width="320" height="200">Uh oh, your browser has Javascript disabled, or is too old. Fix that in order to play.</canvas>
</div>
</body>
</html>