-
Notifications
You must be signed in to change notification settings - Fork 20
/
index.html
60 lines (52 loc) · 1.81 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
<!DOCTYPE html>
<html>
<head>
<title>TwoPointFive for Impact</title>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="viewport" content="width=device-width, minimal-ui, initial-scale=1, maximum-scale=1, user-scalable=0">
<link rel="stylesheet" type="text/css" href="styles.css"/>
<script type="text/javascript" src="lib/impact/impact.js"></script>
<script type="text/javascript" src="lib/game/main.js"></script>
</head>
<body id="xibalba" class="desktop webgl">
<div class="panel desktop-only">
<h1>
Demo Game using the
<a href="http://github.com/phoboslab/twopointfive">TwoPointFive Plugin</a>
for
<a href="http://impactjs.com/">Impact</a>
</h1>
</div>
<div id="game" class="webgl-only">
<canvas id="canvas" class="landscape-only"></canvas>
<div id="rotate-to-play" class="mobile-only portrait-only">
<div><img src="media/rotate.png"/></div>
Rotate to Landscape to play!
</div>
<div class="panel desktop-only">
<div class="option">
<input type="checkbox" id="requestFullscreen"/>
<label for="requestFullscreen"><span></span>Fullscreen</label>
</div>
<div class="option">
<input type="checkbox" id="riftStereoMode"/>
<label for="riftStereoMode"><span></span>Oculus Rift DK2 Stereo Rendering</label>
– requires the <a href="http://blog.tojicode.com/2014/07/bringing-vr-to-chrome.html">Chrome WebVR Build</a>
</div>
</div>
</div>
<div class="no-webgl-only">
<div id="no-webgl-notice" class="panel">
<p>
Your browser does not support WebGL. Try
<a href="http://www.google.com/chrome">Chrome</a> or
<a href="http://www.mozilla.com/firefox/">Firefox</a>.
</p>
<p>
Mobile Safari has WebGL support in iOS 8
</p>
</div>
</div>
</body>
</html>