This repository has been archived by the owner on Jul 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jsfps.html
143 lines (143 loc) · 3.92 KB
/
jsfps.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
<html>
<head>
<title>JavaScript FPS Demo</title>
<script type="text/javascript" src="js/json/json2.js"></script>
<script type="text/javascript" src="js/jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/quirksmode/cookies.js"></script>
<script type="text/javascript" src="js/config.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/commands.js"></script>
<script type="text/javascript" src="js/vector3d.js"></script>
<script type="text/javascript" src="js/boundingbox.js"></script>
<script type="text/javascript" src="js/entity.js"></script>
<script type="text/javascript" src="js/mobile.js"></script>
<script type="text/javascript" src="js/aimobile.js"></script>
<script type="text/javascript" src="js/projectile.js"></script>
<script type="text/javascript" src="js/particlesystem.js"></script>
<script type="text/javascript" src="js/color.js"></script>
<script type="text/javascript" src="js/js3d.js"></script>
<script type="text/javascript" src="js/tilemap.js"></script>
<script type="text/javascript" src="js/data.js"></script>
<style type="text/css">
body, html
{
background-color: #000000;
color: #00ff00;
padding: 0;
margin: 0;
}
#title
{
font-size: 2em;
text-align: center;
}
#author
{
text-align: center;
}
#layoutTable
{
margin: 0 auto;
}
#configWindow
{
vertical-align: top;
padding: 4px;
width: 240px;
}
#configWindow select
{
width: 100%;
}
</style>
</head>
<body oncontextmenu="return false;">
<div id="title">JSFPS: The JavaScript First Person Shooter</div>
<div id="author">by Norman B. Lancaster (QBRADQ)</div>
<table cellpadding="0" cellspacing="0" id="layoutTable">
<tr>
<td>
<canvas id="canvas" width="640" height="480">
<p>You must use a browser that supports native Canvas tags. Please use IE9 or later.</p>
</canvas>
</td>
<td id="configWindow">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="40%">FPS</td>
<td align="right"><span id="fps"></span></td>
</tr>
<tr>
<td>Resolution</td>
<td align="right">
<select id="resolution">
<option value="320,240">320x240</option>
<option value="480,360">480x360</option>
<option value="640,480">640x480</option>
<option value="960,720">960x720</option>
<option value="1280,960">1280x960</option>
</select>
</td>
</tr>
<tr>
<td>Fill Seams</td>
<td align="right">
<select id="fillSeams">
<option value="no">No</option>
<option value="yes">Yes</option>
</select>
</td>
</tr>
<tr>
<td>Extra Pollys</td>
<td align="right">
<select id="highRes">
<option value="no">No</option>
<option value="yes">Yes</option>
</select>
</td>
</tr>
<tr>
<td>Key Config</td>
<td align="right">
<select id="keyBinding">
<option value="Modern FPS">Modern FPS</option>
<option value="Classic QWERTY">Classic QWERTY</option>
</select>
</td>
</tr>
<tr>
<td>Mouse Speed</td>
<td align="right">
<select id="mouseSpeed">
<option value="2">2</option>
<option value="4">4</option>
<option value="6">6</option>
<option value="8">8</option>
<option value="10">10</option>
<option value="12">12</option>
<option value="14">14</option>
<option value="16">16</option>
</select>
</td>
</tr>
<tr>
<td>Sticky Mouse</td>
<td align="right">
<select id="stickyMouse">
<option value="no">No</option>
<option value="yes">Yes</option>
</select>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
Frame Stats: <span id="status"></span> <span id="debug"></span>
</td>
</tr>
</table>
</body>
</html>