-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·66 lines (58 loc) · 2.34 KB
/
Copy pathindex.html
File metadata and controls
executable file
·66 lines (58 loc) · 2.34 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
<!DOCTYPE HTML>
<html>
<head>
<title>Infection</title>
<link rel="stylesheet" type="text/css" media="screen" href="index.css">
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
</head>
<body>
<!-- Canvas placeholder -->
<div id="screen"></div>
<!-- melonJS Library -->
<script type="text/javascript" src="lib/melonJS-0.9.7.js"></script>
<!-- Plugin(s) -->
<script type="text/javascript" src="lib/plugins/debugPanel.js"></script>
<script type="text/javascript" src="lib/plugins/jquery-2.0.3.min.js"></script>
<!-- Game Scripts -->
<script type="text/javascript" src="js/game.js"></script>
<script type="text/javascript" src="js/resources.js"></script>
<script type="text/javascript" src="js/entities/entities.js"></script>
<script type="text/javascript" src="js/screens/title.js"></script>
<script type="text/javascript" src="js/screens/play.js"></script>
<script type="text/javascript" src="js/screens/gameOver.js"></script>
<!-- Bootstrap & Mobile optimization tricks -->
<script type="text/javascript">
window.onReady(function onReady() {
game.onload();
// Mobile browser hacks
if (me.sys.isMobile && !navigator.isCocoonJS) {
// Prevent the webview from moving on a swipe
window.document.addEventListener("touchmove", function (e) {
e.preventDefault();
window.scroll(0, 0);
return false;
}, false);
// Scroll away mobile GUI
(function () {
window.scrollTo(0, 1);
}).defer();
me.event.subscribe(me.event.WINDOW_ONRESIZE, function (e) {
window.scrollTo(0, 1);
})
// Retina viewport settings
if (window.devicePixelRatio > 1) {
document.getElementById("viewport").setAttribute(
"content",
"width=device-width, initial-scale=0.5, maximum-scale=0.5, user-scalable=0"
);
}
}
});
</script>
<div id="ins"><p><b>Instructions:</b><hr>Arrow keys to move<br>Hold X to attack<br>Press Z to pickup blood bags<br>
Hold A to call converted entities<br>Press C to scatter your army<br>P to control audio
</p></div>
</body>
</html>