-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
36 lines (35 loc) · 1.59 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
<!doctype html>
<meta charset=utf-8>
<style>
* { margin: 0; padding: 0; border: 0; box-sizing: border-box; overflow: hidden }
body { background: #222; text-align: center; }
img.preload { position: absolute; opacity: 0; left: -9999px; }
canvas { width: 177.7vh; height: 99vh; background: #eee; cursor: crosshair; }
canvas.portrait { width: 99vw; height: 56.2vw; position: absolute; top: 50vh; left: 0; margin: -28.1vw 0 0 0.5vw; }
button { width: 100px; height: 40px }
input { font-size: 10px; width: 200px }
</style>
<title>platform engine</title>
<body id=body>
<canvas id=canvas width=800 height=450></canvas>
<button onclick="location=location">reset</button>
<input id=l1 hidden>
<input id=l2 hidden>
<input id=l3>
<img class=preload src="img/hero.png" id=hero_sprite>
<img class=preload src="img/wall_unportalable.png" id=wall_unportalable_sprite>
<img class=preload src="img/wall_portalable.png" id=wall_portalable_sprite>
<img class=preload src="img/gun.png" id=gun_sprite>
<img class=preload src="img/void.png" id=void_sprite>
<img class=preload src="img/exit.png" id=exit_sprite>
<img class=preload src="img/slope45degleft.png" id=slope_45deg_left>
<img class=preload src="img/slope45degright.png" id=slope_45deg_right>
<img class=preload src="img/slopeminus45degleft.png" id=slope_minus_45deg_left>
<img class=preload src="img/slopeminus45degright.png" id=slope_minus_45deg_right>
<script src=canvas.js></script>
<script src=tiles.js></script>
<script src=maps.js></script>
<script src=inputs.js></script>
<script src=hero.js></script>
<script src=game.js></script>
</body>