forked from steren/hl-engine-js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
61 lines (49 loc) · 1.6 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
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="MobileOptimized" content="640"/>
<meta name="HandheldFriendly" content="true"/>
<title>Half-Life Engine JS demo</title>
<style>
body {
font-family: arial;
margin: 0;
padding: none;
background-color: #555555;
color: white;
}
/* the canvas *must not* have any border or padding, or mouse coords will be wrong */
.render {
border: 0px none;
background-color: black;
padding-right: 0;
margin-left: auto;
margin-right: auto;
display: block;
}
#fullscreen {
position: absolute;
top: 0;
right: 0;
}
</style>
</head>
<body>
<canvas class="render" id="canvas" oncontextmenu="event.preventDefault()"></canvas>
<button id="fullscreen">Fullscreen</button>
<p id="status">Downloading...</p>
<form>
<label for="zip">Select game data as local .zip file:</label><br>
<input type="file" name="zip" id="zip" /><br>
<label for="mod">Mod (Optional)</label> <input type=text id="mod" name="mod" value="valve"/><br>
<label for="map">Map (Optional)</label> <input type=text id="map" name="map" /><br>
<input type="button" id="start" value="Start" />
</form>
<a href="https://github.com/steren/hl-engine-js">Source on GitHub</a>
<script type='text/javascript' src='browserfs.min.js'></script>
<script type="module" src='index.js'></script>
</body>
</html>